summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * term.c (get_named_tty, create_tty_output, tty_free_frame_resources)Dmitry Antipov2013-08-154-41/+20
| | | | | | | | (tty_free_frame_resources, delete_tty): Prefer eassert to emacs_abort. * image.c (make_image_cache): For struct image_cache, prefer xmalloc to xzalloc and so avoid redundant call to memset. * xterm.c (x_term_init): Avoid unnecessary initializations of dpyinfo members because it is allocated with xzalloc and so already zeroed.
* * src/gmalloc.c [CYGWIN]: Rename memalign (Bug#15094).Ken Brown2013-08-142-0/+14
|
* Utility function and macro to copy Lisp string to C string.Dmitry Antipov2013-08-149-32/+42
| | | | | | | | | | | | | * lisp.h (xlispstrdupa): New macro. (xlispstrdup): New prototype. * alloc.c (xlispstrdup): New function. * callint.c (Fcall_interactively): * fileio.c (Ffile_name_directory, Fexpand_file_name) (Fsubstitute_in_file_name): * frame.c (Fmake_terminal_frame): Use xlispstrdupa. * image.c (x_create_bitmap_from_file): * w32term.c (w32_term_init): * xterm.c (x_term_init): Use xlispstrdup.
* Refine previous change.Xue Fuqiao2013-08-141-2/+5
|
* * src/marker.c (set_marker): Reformat documentation.Xue Fuqiao2013-08-144-4/+11
|
* * image.c (imagemagick_load_image): Make animated pictures work.Lars Magne Ingebrigtsen2013-08-142-0/+14
| | | | | | There's still some problems with background color settings, though. Fixes: debbugs:14700
* lisp/frameset.el: Allow orphaned minibufferless frames.Juanma Barranquero2013-08-142-32/+58
| | | | | | | | | | | | (frameset-filter-minibuffer): Deal with the case that the minibuffer parameter was already set in FILTERED. Doc fix. (frameset--record-minibuffer-relationships): Allow saving a minibufferless frame without its corresponding minibuffer frame. (frameset--reuse-frame): Accept a match from an orphaned minibufferless frame, if the frame id matches. (frameset--minibufferless-last-p): Sort non-orphaned minibufferless frames before orphaned ones. (frameset-restore): Warn about orphaned windows, instead of error out.
* lisp/frameset.el: Use gv-setter declaration.Juanma Barranquero2013-08-142-8/+13
| | | | | (frameset--prop-setter): New function. (frameset-prop): Add gv-setter declaration.
* * url-http.el (url-http-parse-headers): Always place point at theLars Magne Ingebrigtsen2013-08-142-0/+6
| | | | start of the buffer instead of just 80% of the time.
* * decompress.c (unwind_decompress): Always restore point.Lars Magne Ingebrigtsen2013-08-142-5/+11
|
* * doc/emacs/files.texi (Filesets): Add an index.Xue Fuqiao2013-08-142-0/+5
|
* Auto-commit of generated files.Glenn Morris2013-08-141-1/+1
|
* Fix some issues in window.el.Martin Rudalics2013-08-142-27/+89
| | | | | | | | | | | | | | | | | | | | | | * window.el (window-make-atom): Don't overwrite parameter already present. (display-buffer-in-atom-window): Handle special case where we split an already atomic window. (window--major-non-side-window, display-buffer-in-side-window) (window--side-check): Ignore minibuffer window when walking window tree. (window-deletable-p): Return 'frame only if no other frame uses our minibuffer window. (record-window-buffer): Run buffer-list-update-hook. (split-window): Make sure window--check-frame won't destroy an existing atomic window in case the new window gets nested inside. (display-buffer-at-bottom): Ignore minibuffer window when walking window tree. Don't split a side window. (pop-to-buffer): Don't set-buffer here, the select-window call should do that. (mouse-autoselect-window-select): Autoselect only if we are in the text portion of the window.
* * xdisp.c (redisplay_window): If window_end_valid is cleared due toDmitry Antipov2013-08-142-2/+8
| | | | | non-zero windows_or_buffers_changed, clear current_matrix_up_to_date_p and so do not call to try_cursor_movement for that window.
* * xdisp.c (cursor_type_changed): Now static.Paul Eggert2013-08-143-5/+3
|
* * image.c (imagemagick_filename_hint): New arg HINT_BUFFER.Paul Eggert2013-08-142-40/+35
| | | | | Use changed. This avoids the need to call xmalloc and for the caller to call xfree, and avoids memory leaks in some situations.
* * xdisp.c (adjust_window_ends): Move duplicated code to new function.Dmitry Antipov2013-08-142-43/+22
| | | | (try_window, try_window_reusing_current_matrix, try_window_id): Use it.
* * window.h (struct window): Convert window_end_pos andDmitry Antipov2013-08-145-113/+94
| | | | | | | | | | | | | | | window_end_vpos from Lisp_Object to ptrdiff_t and int, respectively. (wset_window_end_pos, wset_window_end_vpos): Remove. * dispnew.c (adjust_glyph_matrix): * window.c (Fwindow_end, replace_window, set_window_buffer) (make_window): * xdisp.c (check_window_end, move_it_to, redisplay_internal) (set_vertical_scroll_bar, redisplay_window, try_window) (try_window_reusing_current_matrix, find_first_unchanged_at_end_row) (try_window_id, decode_mode_spec, mouse_face_from_buffer_pos) (note_mouse_highlight): Adjust users. (try_cursor_movement): Likewise. Convert old precondition to eassert. Add comment.
* Fix --enable-gcc-warnings errors introduced in 2013-08-13 commit.Dmitry Antipov2013-08-142-5/+11
| | | | | * image.c (imagemagick_filename_hint): Use `const char *' and prefer SSDATA to SDATA to avoid warnings.
* Cleanup window fringes, margins and scroll bars adjustments.Dmitry Antipov2013-08-142-95/+112
| | | | | | | * window.c (set_window_fringes, set_window_margins) (set_window_scroll_bars, apply_window_adjustment): New functions. (set_window_buffer, Fset_window_margins, Fset_window_fringes) (Fset_window_scroll_bars): Use them.
* * window.h (struct window): Convert scroll_bar_widthDmitry Antipov2013-08-143-27/+36
| | | | | | | | | | | | | from Lisp_Object to integer. Adjust comment. (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS): Adjust users. * window.c (wset_scroll_bar_width): Remove. (make_window): Initialize scroll_bar_width. (Fsplit_window_internal): Use direct assignment. (Fset_window_configuration, save_window_save): Convert Lisp_Object to integer and back where appropriate. (Fset_window_scroll_bars): Adjust user. Return t if any scroll bar was actually changed, and mention this in docstring.
* * configure.ac (EMACS_CONFIGURATION): Escape backslashes.Ulrich Mueller2013-08-132-1/+5
| | | | Fixes: debbugs:15091
* * package-test.el: Remove tar-package-building functions. Tar fileDaniel Hackney2013-08-132-38/+7
| | | | | used for testing is included in the repository. (package-test-install-texinfo, package-test-cleanup-built-files): Remove.
* * decompress.c: Minor simplifications.Paul Eggert2013-08-132-5/+11
| | | | | | | (Fzlib_decompress_region): Don't bother verifying that avail_out <= UINT_MAX, as that was confusing. Mention the restriction in a comment instead. Prefer 'int' to 'ptrdiff_t' when 'int' is wide enough.
* Fix OSX 10.4 compiler errors.Jan Djärv2013-08-132-0/+9
| | | | | * nsmenu.m (x_activate_menubar): Check for OSX >= 10.5 (trackingNotification:): Call ns_check_menu_open only for OSX >= 10.5.
* Rename :content-type to :format in `create-image'Lars Magne Ingebrigtsen2013-08-135-18/+16
|
* White-space cleanup.Lars Magne Ingebrigtsen2013-08-131-1/+1
|
* * image.c (imagemagick_filename_hint): Check for errors in the alist structure.Lars Magne Ingebrigtsen2013-08-132-5/+18
|
* Make shr feed Content-Type to the image-creating librariesLars Magne Ingebrigtsen2013-08-133-10/+35
| | | | | | | | | | This finally makes it possible to display icons. * net/eww.el (eww-display-image): Ditto. * net/shr.el (shr-parse-image-data): New function to grab both the data itself and the Content-Type. (shr-put-image): Use it.
* Fix the Windows build broken by 2013-08-13T15:29:25Z!dmantipov@yandex.ru.Eli Zaretskii2013-08-134-4/+18
| | | | | | | | | | src/window.c (Fwindow_margins): Return nil when there's no marginal area, as per the documented API. src/w32term.c (x_scroll_bar_create): Use ALLOCATE_PSEUDOVECTOR, not Fmake_vector, as scroll bar's struct members are not all Lisp objects now. This avoids crashes in GC. src/w32term.h (struct scroll_bar): Convert fringe_extended_p to a bool, so its address could be taken.
* Enable giving hints to ImageMagick via :content-typeLars Magne Ingebrigtsen2013-08-137-0/+78
| | | | | | | | | | | | 2013-08-13 Lars Magne Ingebrigtsen <larsi@gnus.org> * image.el (image-content-type-suffixes): New variable. 2013-08-13 Lars Magne Ingebrigtsen <larsi@gnus.org> * image.c (imagemagick_filename_hint): New function to possibly apply `image-content-type-suffixes'. (imagemagick_load_image): Use it.
* * lisp/progmodes/python.el (python-imenu--build-tree)Fabián Ezequiel Gallina2013-08-134-82/+94
| | | | | | | (python-imenu--put-parent): Simplify and Fix (GH bug 146). * test/automated/python-tests.el (python-imenu-create-index-4) (python-imenu-create-flat-index-2): New tests.
* Fail zlib-decompress-region if loading zlib on Windows failed.Eli Zaretskii2013-08-132-0/+7
| | | | | src/decompress.c (Fzlib_decompress_region) [WINDOWSNT]: Return Qnil if loading zlib failed.
* Fix NS compile breakage.Jan Djärv2013-08-132-2/+6
| | | | | | * nsterm.m (ns_set_vertical_scroll_bar): Fix breakage intruduced by 2013-08-13 checkin below. Change bool to BOOL, rule is: All Obj-C code uses BOOL, except for interfaces callable from C.
* * nsterm.h: Fix CGFloat for OSX 10.4.Jan Djärv2013-08-132-15/+22
| | | | Fixes: debbugs:15086
* * window.h (WINDOW_FRINGE_EXTENDED_P): New macro.Dmitry Antipov2013-08-137-50/+49
| | | | | | | | | | | | | * nsterm.m (ns_set_vertical_scroll_bar): Use it. Use convenient bool instead of BOOL. * w32term.h (struct scroll_bar): Convert fringe_extended_p from Lisp_Object to bitfield. Adjust comment. * w32term.c (x_scroll_bar_create): Adjust user. Use WINDOW_FRINGE_EXTENDED_P and bool for boolean. * xterm.c (XTset_vertical_scroll_bar): Likewise. Use bool for boolean. * xterm.h (struct scroll_bar): Prefer commonly used `unsigned' to `unsigned int' when defining a bitfield.
* * decompress.c (Fzlib_decompress_region): Try to clarify 'avail_out'.Paul Eggert2013-08-132-3/+10
|
* * window.h (struct window): Convert left_margin_cols andDmitry Antipov2013-08-136-102/+76
| | | | | | | | | | | | | | | | | | | right_margin_cols from Lisp_Objects to integers. Adjust comment. (WINDOW_LEFT_MARGIN_COLS, WINDOW_RIGHT_MARGIN_COLS) (WINDOW_LEFT_MARGIN_WIDTH, WINDOW_RIGHT_MARGIN_WIDTH): Adjust users. * dispnew.c (margin_glyphs_to_reserve): Convert 3rd arg to int. Adjust comment. (showing_window_margins_p, update_window_line, update_frame_1): * fringe.c (draw_fringe_bitmap_1): * xdisp.c (window_box_width): Adjust users. * window.c (wset_left_margin_cols, wset_right_margin_cols): Remove. (adjust_window_margins, set_window_buffer, Fsplit_window_internal): Use direct assignment. (Fset_window_configuration, save_window_save, Fwindow_margins): Convert Lisp_Object to integer and back where appropriate. (Fset_window_margins): Adjust user. Return t if any margin was actually changed, and mention this in docstring.
* Doc fix for forward-word and backward-word.Xue Fuqiao2013-08-136-4/+16
| | | | | | * doc/lispref/positions.texi (Word Motion): Remove redundant sentence. * lisp/simple.el (backward-word): Mention the optional argument. * src/syntax.c (forward_word): Mention the optional argument.
* * src/cmds.c (forward_char, backward_char): Mention the optional argument.Xue Fuqiao2013-08-132-0/+6
|
* * lisp/frameset.el (frameset--make): Rename constructor from make-frameset.Stefan Monnier2013-08-132-20/+24
| | | | | (frameset-p, frameset-valid-p): Don't autoload. (frameset-valid-p): Use normal accessors.
* * window.h (struct window): Convert left_fringe_widthDmitry Antipov2013-08-133-41/+50
| | | | | | | | | | | | | | | and right_fringe_width from Lisp_Objects to integers. Adjust comment. (WINDOW_FRINGE_COLS, WINDOW_LEFT_FRINGE_WIDTH) (WINDOW_RIGHT_FRINGE_WIDTH): Adjust users. * window.c (wset_left_fringe_width, wset_right_fringe_width): Remove. (make_window): Initialize new integer fields to -1. (Fsplit_window_internal): Use direct assignment. (Fset_window_configuration, save_window_save): Convert Lisp_Object to integer and back where appropriate. (Fset_window_fringes): Adjust user. Return t if any fringe was actually changed, and mention this in docstring.
* Auto-commit of generated files.Glenn Morris2013-08-131-12/+10
|
* * nsfns.m (x_set_cursor_type):Dmitry Antipov2013-08-135-12/+9
| | | | | | * w32fns.c (x_set_cursor_type): * xfns.m (x_set_cursor_type): Do not set cursor_type_changed here... * xdisp.c (set_frame_cursor_types): ...but in common code.
* * keyboard.c (Fdiscard_input): Do not increment update_mode_lines.Dmitry Antipov2013-08-132-2/+4
|
* * font.c (clear_font_cache): New function, stripped from...Dmitry Antipov2013-08-134-30/+39
| | | | | | | (Fclear_font_cache): ...here, which now uses the function above. Adjust comment. * font.h (clear_font_cache): Add prototype. * xfaces.c (clear_face_cache): Use clear_font_cache.
* * window.c (Fset_window_start): Compare `w', not `window' becauseDmitry Antipov2013-08-132-1/+6
| | | | `w' might not be equal to `window' after call to decode_live_window.
* Tweak some settings of compile-commandGlenn Morris2013-08-134-4/+14
| | | | | | | | * progmodes/compile.el (compile-command): Tweak example in doc. * obsolete/scribe.el (scribe-mode): * progmodes/mixal-mode.el (mixal-mode): Quote buffer name. Fixes: debbugs:15053
* Fix some custom typesGlenn Morris2013-08-135-8/+27
| | | | | | | | | | | * lisp/cus-start.el (truncate-partial-width-windows): Fix type. * lisp/emulation/viper-init.el (viper-search-scroll-threshold): Fix type. * lisp/mail/feedmail.el (feedmail-confirm-outgoing) (feedmail-display-full-frame, feedmail-deduce-bcc-where): Fix types. * admin/admin.el: Related comments.
* * gnus/gnus-icalendar.el (gnus-icalendar-org-capture-file): Fix type.Glenn Morris2013-08-132-1/+3
|