bpt/emacs.git
10 years ago* image.c (imagemagick_compute_animated_image): Implement animated images.
Lars Magne Ingebrigtsen [Thu, 15 Aug 2013 15:10:12 +0000 (17:10 +0200)]
* image.c (imagemagick_compute_animated_image): Implement animated images.

Fixes: debbugs:14700

10 years ago* lisp.h (FOR_EACH_ALIST_VALUE): New macro
Dmitry Antipov [Thu, 15 Aug 2013 14:52:53 +0000 (18:52 +0400)]
* lisp.h (FOR_EACH_ALIST_VALUE): New macro
to do `for' loops over alist values.
* buffer.h (FOR_EACH_BUFFER):
* process.c (FOR_EACH_PROCESS): Use it.
(handle_child_signal, status_notify, Fget_buffer_process)
(kill_buffer_processes): Use FOR_EACH_PROCESS.

10 years agoRemove byte compiler warnings, visible when compiling with
Michael Albinus [Thu, 15 Aug 2013 14:29:08 +0000 (16:29 +0200)]
Remove byte compiler warnings, visible when compiling with
`byte-compile-force-lexical-warnings' set to t.

* net/tramp.el (tramp-debug-message, tramp-message, tramp-error)
(tramp-error-with-buffer): Rename ARGS to ARGUMENTS and BUFFER to BUF.
(tramp-handle-unhandled-file-name-directory)
(tramp-handle-file-notify-add-watch, tramp-action-login)
(tramp-action-succeed, tramp-action-permission-denied)
(tramp-action-terminal, tramp-action-process-alive): Prefix unused
arguments with "_".

* net/tramp-adb.el (tramp-adb-parse-device-names)
(tramp-adb-handle-insert-directory, tramp-adb-handle-delete-file)
(tramp-adb-handle-copy-file): Prefix unused arguments with "_".
(tramp-adb-handle-file-truename): Remove unused arguments.

* net/tramp-cache.el (tramp-flush-directory-property)
(tramp-flush-connection-property, tramp-list-connections)
(tramp-parse-connection-properties): Prefix unused arguments with "_".

* net/tramp-compat.el (tramp-compat-make-temp-file): Rename
FILENAME to F.

* net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-handle-write-region, tramp-bluez-parse-device-names)
(tramp-zeroconf-parse-workstation-device-names)
(tramp-zeroconf-parse-webdav-device-names)
(tramp-synce-parse-device-names): Prefix unused arguments with "_".

* net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
(tramp-gw-aux-proc-sentinel): Prefix unused arguments with "_".

* net/tramp-sh.el (tramp-sh-handle-file-truename): Remove unused
arguments.
(tramp-sh-handle-copy-file, tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-file-contents-literally)
(tramp-sh-handle-file-notify-add-watch): Prefix unused arguments
with "_".
(tramp-do-copy-or-rename-file, tramp-barf-if-no-shell-prompt):
Remove unused variables.

* net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-delete-file)
(tramp-smb-read-file-entry): Prefix unused arguments with "_".

* net/tramp-uu.el (tramp-uu-b64-alphabet, tramp-uu-b64-char-to-byte):
Make them a defconst.
(tramp-uuencode-region): Remove unused variable.

10 years ago* doc/lispref/markers.texi (The Region): Add/move indexes.
Xue Fuqiao [Thu, 15 Aug 2013 08:27:22 +0000 (16:27 +0800)]
* doc/lispref/markers.texi (The Region): Add/move indexes.

10 years agoStop keeping etc/refcards generated PDFs in the repository
Glenn Morris [Thu, 15 Aug 2013 06:38:44 +0000 (23:38 -0700)]
Stop keeping etc/refcards generated PDFs in the repository

They are on the gnu.org website and will be in the release tarfiles.

* admin/make-tarball.txt: Mention generating pdfs in etc/refcards.

* etc/refcards/calccard.pdf, etc/refcards/cs-dired-ref.pdf:
* etc/refcards/cs-refcard.pdf, etc/refcards/de-refcard.pdf:
* etc/refcards/dired-ref.pdf, etc/refcards/fr-dired-ref.pdf:
* etc/refcards/fr-refcard.pdf, etc/refcards/gnus-booklet.pdf:
* etc/refcards/gnus-refcard.pdf, etc/refcards/orgcard.pdf:
* etc/refcards/pl-refcard.pdf, etc/refcards/pt-br-refcard.pdf:
* etc/refcards/refcard.pdf, etc/refcards/ru-refcard.pdf:
* etc/refcards/sk-dired-ref.pdf, etc/refcards/sk-refcard.pdf:
Remove generated files from repository.

10 years agoCleanup for etc/refcards/Makefile and related items
Glenn Morris [Thu, 15 Aug 2013 06:31:14 +0000 (23:31 -0700)]
Cleanup for etc/refcards/Makefile and related items

* .bzrignore: Unignore etc/refcards/Makefile.

* make-dist: Do not distribute etc/refcards TeX intermediate files.

* Makefile.in (install-arch-indep):
Do not install etc/refcards TeX intermediate files.

* etc/refcards/Makefile: Rewrite to use portable Makefile syntax.
Add language-specific targets.
(distclean, extraclean): New rules.

*  etc/refcards/README: Add copyright and license.  Add Makefile details.
Mention http and FSF store versions.

10 years ago* admin/notes/hydra: More information about Hydra.
Xue Fuqiao [Thu, 15 Aug 2013 06:23:40 +0000 (14:23 +0800)]
* admin/notes/hydra: More information about Hydra.

10 years ago* term.c (get_named_tty, create_tty_output, tty_free_frame_resources)
Dmitry Antipov [Thu, 15 Aug 2013 05:23:40 +0000 (09:23 +0400)]
* term.c (get_named_tty, create_tty_output, tty_free_frame_resources)
(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.

10 years ago* src/gmalloc.c [CYGWIN]: Rename memalign (Bug#15094).
Ken Brown [Wed, 14 Aug 2013 19:09:51 +0000 (15:09 -0400)]
* src/gmalloc.c [CYGWIN]: Rename memalign (Bug#15094).

10 years agoUtility function and macro to copy Lisp string to C string.
Dmitry Antipov [Wed, 14 Aug 2013 16:36:16 +0000 (20:36 +0400)]
Utility function and macro to copy Lisp string to C string.
* 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.

10 years agoRefine previous change.
Xue Fuqiao [Wed, 14 Aug 2013 14:02:46 +0000 (22:02 +0800)]
Refine previous change.

10 years ago* src/marker.c (set_marker): Reformat documentation.
Xue Fuqiao [Wed, 14 Aug 2013 13:58:25 +0000 (21:58 +0800)]
* src/marker.c (set_marker): Reformat documentation.

10 years ago* image.c (imagemagick_load_image): Make animated pictures work.
Lars Magne Ingebrigtsen [Wed, 14 Aug 2013 13:50:03 +0000 (15:50 +0200)]
* image.c (imagemagick_load_image): Make animated pictures work.

There's still some problems with background color settings, though.

Fixes: debbugs:14700

10 years agolisp/frameset.el: Allow orphaned minibufferless frames.
Juanma Barranquero [Wed, 14 Aug 2013 13:41:02 +0000 (15:41 +0200)]
lisp/frameset.el: Allow orphaned minibufferless frames.
(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.

10 years agolisp/frameset.el: Use gv-setter declaration.
Juanma Barranquero [Wed, 14 Aug 2013 13:30:13 +0000 (15:30 +0200)]
lisp/frameset.el: Use gv-setter declaration.
(frameset--prop-setter): New function.
(frameset-prop): Add gv-setter declaration.

10 years ago* url-http.el (url-http-parse-headers): Always place point at the
Lars Magne Ingebrigtsen [Wed, 14 Aug 2013 13:03:25 +0000 (15:03 +0200)]
* url-http.el (url-http-parse-headers): Always place point at the
start of the buffer instead of just 80% of the time.

10 years ago* decompress.c (unwind_decompress): Always restore point.
Lars Magne Ingebrigtsen [Wed, 14 Aug 2013 12:47:05 +0000 (14:47 +0200)]
* decompress.c (unwind_decompress): Always restore point.

10 years ago* doc/emacs/files.texi (Filesets): Add an index.
Xue Fuqiao [Wed, 14 Aug 2013 10:45:10 +0000 (18:45 +0800)]
* doc/emacs/files.texi (Filesets): Add an index.

10 years agoAuto-commit of generated files.
Glenn Morris [Wed, 14 Aug 2013 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoFix some issues in window.el.
Martin Rudalics [Wed, 14 Aug 2013 09:14:32 +0000 (11:14 +0200)]
Fix some issues in window.el.

* 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.

10 years ago* xdisp.c (redisplay_window): If window_end_valid is cleared due to
Dmitry Antipov [Wed, 14 Aug 2013 07:25:45 +0000 (11:25 +0400)]
* xdisp.c (redisplay_window): If window_end_valid is cleared due to
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.

10 years ago* xdisp.c (cursor_type_changed): Now static.
Paul Eggert [Wed, 14 Aug 2013 07:05:54 +0000 (00:05 -0700)]
* xdisp.c (cursor_type_changed): Now static.

10 years ago* image.c (imagemagick_filename_hint): New arg HINT_BUFFER.
Paul Eggert [Wed, 14 Aug 2013 07:00:25 +0000 (00:00 -0700)]
* image.c (imagemagick_filename_hint): New arg HINT_BUFFER.

Use changed.  This avoids the need to call xmalloc and for the
caller to call xfree, and avoids memory leaks in some situations.

10 years ago* xdisp.c (adjust_window_ends): Move duplicated code to new function.
Dmitry Antipov [Wed, 14 Aug 2013 06:06:56 +0000 (10:06 +0400)]
* xdisp.c (adjust_window_ends): Move duplicated code to new function.
(try_window, try_window_reusing_current_matrix, try_window_id): Use it.

10 years ago* window.h (struct window): Convert window_end_pos and
Dmitry Antipov [Wed, 14 Aug 2013 05:41:48 +0000 (09:41 +0400)]
* window.h (struct window): Convert window_end_pos and
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.

10 years agoFix --enable-gcc-warnings errors introduced in 2013-08-13 commit.
Dmitry Antipov [Wed, 14 Aug 2013 04:27:32 +0000 (08:27 +0400)]
Fix --enable-gcc-warnings errors introduced in 2013-08-13 commit.
* image.c (imagemagick_filename_hint): Use `const char *' and
prefer SSDATA to SDATA to avoid warnings.

10 years agoCleanup window fringes, margins and scroll bars adjustments.
Dmitry Antipov [Wed, 14 Aug 2013 04:09:37 +0000 (08:09 +0400)]
Cleanup window fringes, margins and scroll bars adjustments.
* 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.

10 years ago* window.h (struct window): Convert scroll_bar_width
Dmitry Antipov [Wed, 14 Aug 2013 04:07:14 +0000 (08:07 +0400)]
* window.h (struct window): Convert scroll_bar_width
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.

10 years ago* configure.ac (EMACS_CONFIGURATION): Escape backslashes.
Ulrich Mueller [Wed, 14 Aug 2013 02:15:01 +0000 (22:15 -0400)]
* configure.ac (EMACS_CONFIGURATION): Escape backslashes.

Fixes: debbugs:15091

10 years ago* package-test.el: Remove tar-package-building functions. Tar file
Daniel Hackney [Wed, 14 Aug 2013 00:56:58 +0000 (20:56 -0400)]
* package-test.el: Remove tar-package-building functions.  Tar file
used for testing is included in the repository.
(package-test-install-texinfo, package-test-cleanup-built-files): Remove.

10 years ago* decompress.c: Minor simplifications.
Paul Eggert [Tue, 13 Aug 2013 21:17:09 +0000 (14:17 -0700)]
* decompress.c: Minor simplifications.

(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.

10 years agoFix OSX 10.4 compiler errors.
Jan Djärv [Tue, 13 Aug 2013 20:18:30 +0000 (22:18 +0200)]
Fix OSX 10.4 compiler errors.
* nsmenu.m (x_activate_menubar): Check for OSX >= 10.5
(trackingNotification:): Call ns_check_menu_open only for OSX >= 10.5.

10 years agoRename :content-type to :format in `create-image'
Lars Magne Ingebrigtsen [Tue, 13 Aug 2013 20:13:02 +0000 (22:13 +0200)]
Rename :content-type to :format in `create-image'

10 years agoWhite-space cleanup.
Lars Magne Ingebrigtsen [Tue, 13 Aug 2013 18:24:37 +0000 (20:24 +0200)]
White-space cleanup.

10 years ago* image.c (imagemagick_filename_hint): Check for errors in the alist structure.
Lars Magne Ingebrigtsen [Tue, 13 Aug 2013 18:22:04 +0000 (20:22 +0200)]
* image.c (imagemagick_filename_hint): Check for errors in the alist structure.

10 years agoMake shr feed Content-Type to the image-creating libraries
Lars Magne Ingebrigtsen [Tue, 13 Aug 2013 18:09:50 +0000 (20:09 +0200)]
Make shr feed Content-Type to the image-creating libraries

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.

10 years agoFix the Windows build broken by 2013-08-13T15:29:25Z!dmantipov@yandex.ru.
Eli Zaretskii [Tue, 13 Aug 2013 18:01:18 +0000 (21:01 +0300)]
Fix the Windows build broken by 2013-08-13T15:29:25Z!dmantipov@yandex.ru.

 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.

10 years agoEnable giving hints to ImageMagick via :content-type
Lars Magne Ingebrigtsen [Tue, 13 Aug 2013 17:45:34 +0000 (19:45 +0200)]
Enable giving hints to ImageMagick via :content-type

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.

10 years ago* lisp/progmodes/python.el (python-imenu--build-tree)
Fabián Ezequiel Gallina [Tue, 13 Aug 2013 16:36:32 +0000 (13:36 -0300)]
* lisp/progmodes/python.el (python-imenu--build-tree)
(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.

10 years agoFail zlib-decompress-region if loading zlib on Windows failed.
Eli Zaretskii [Tue, 13 Aug 2013 16:20:39 +0000 (19:20 +0300)]
Fail zlib-decompress-region if loading zlib on Windows failed.

 src/decompress.c (Fzlib_decompress_region) [WINDOWSNT]: Return Qnil
 if loading zlib failed.

10 years agoFix NS compile breakage.
Jan Djärv [Tue, 13 Aug 2013 15:45:43 +0000 (17:45 +0200)]
Fix NS compile breakage.

* 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.

10 years ago* nsterm.h: Fix CGFloat for OSX 10.4.
Jan Djärv [Tue, 13 Aug 2013 15:39:14 +0000 (17:39 +0200)]
* nsterm.h: Fix CGFloat for OSX 10.4.

Fixes: debbugs:15086

10 years ago* window.h (WINDOW_FRINGE_EXTENDED_P): New macro.
Dmitry Antipov [Tue, 13 Aug 2013 15:29:25 +0000 (19:29 +0400)]
* window.h (WINDOW_FRINGE_EXTENDED_P): New macro.
* 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.

10 years ago* decompress.c (Fzlib_decompress_region): Try to clarify 'avail_out'.
Paul Eggert [Tue, 13 Aug 2013 15:00:58 +0000 (08:00 -0700)]
* decompress.c (Fzlib_decompress_region): Try to clarify 'avail_out'.

10 years ago* window.h (struct window): Convert left_margin_cols and
Dmitry Antipov [Tue, 13 Aug 2013 14:45:58 +0000 (18:45 +0400)]
* window.h (struct window): Convert left_margin_cols and
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.

10 years agoDoc fix for forward-word and backward-word.
Xue Fuqiao [Tue, 13 Aug 2013 14:26:39 +0000 (22:26 +0800)]
Doc fix for forward-word and backward-word.

* 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.

10 years ago* src/cmds.c (forward_char, backward_char): Mention the optional argument.
Xue Fuqiao [Tue, 13 Aug 2013 14:09:12 +0000 (22:09 +0800)]
* src/cmds.c (forward_char, backward_char): Mention the optional argument.

10 years ago* lisp/frameset.el (frameset--make): Rename constructor from make-frameset.
Stefan Monnier [Tue, 13 Aug 2013 13:47:54 +0000 (09:47 -0400)]
* lisp/frameset.el (frameset--make): Rename constructor from make-frameset.
(frameset-p, frameset-valid-p): Don't autoload.
(frameset-valid-p): Use normal accessors.

10 years ago* window.h (struct window): Convert left_fringe_width
Dmitry Antipov [Tue, 13 Aug 2013 12:13:04 +0000 (16:13 +0400)]
* window.h (struct window): Convert left_fringe_width
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.

10 years agoAuto-commit of generated files.
Glenn Morris [Tue, 13 Aug 2013 10:17:42 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* nsfns.m (x_set_cursor_type):
Dmitry Antipov [Tue, 13 Aug 2013 08:58:15 +0000 (12:58 +0400)]
* nsfns.m (x_set_cursor_type):
* 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.

10 years ago* keyboard.c (Fdiscard_input): Do not increment update_mode_lines.
Dmitry Antipov [Tue, 13 Aug 2013 08:39:14 +0000 (12:39 +0400)]
* keyboard.c (Fdiscard_input): Do not increment update_mode_lines.

10 years ago* font.c (clear_font_cache): New function, stripped from...
Dmitry Antipov [Tue, 13 Aug 2013 08:18:11 +0000 (12:18 +0400)]
* font.c (clear_font_cache): New function, stripped from...
(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.

10 years ago* window.c (Fset_window_start): Compare `w', not `window' because
Dmitry Antipov [Tue, 13 Aug 2013 08:17:50 +0000 (12:17 +0400)]
* window.c (Fset_window_start): Compare `w', not `window' because
`w' might not be equal to `window' after call to decode_live_window.

10 years agoTweak some settings of compile-command
Glenn Morris [Tue, 13 Aug 2013 07:56:43 +0000 (00:56 -0700)]
Tweak some settings of compile-command

* 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

10 years agoFix some custom types
Glenn Morris [Tue, 13 Aug 2013 07:42:51 +0000 (00:42 -0700)]
Fix some custom types

* 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.

10 years ago* gnus/gnus-icalendar.el (gnus-icalendar-org-capture-file): Fix type.
Glenn Morris [Tue, 13 Aug 2013 07:22:05 +0000 (00:22 -0700)]
* gnus/gnus-icalendar.el (gnus-icalendar-org-capture-file): Fix type.

10 years agoFix some custom types
Glenn Morris [Tue, 13 Aug 2013 07:18:50 +0000 (00:18 -0700)]
Fix some custom types

* gnus/gnus.el (gnus-valid-select-methods): Fix type.

* gnus/nnimap.el (nnimap-request-articles-find-limit): Fix type, version.

* net/shr.el (shr-table-horizontal-line): Fix custom type.

10 years ago* lispref/lists.texi (List Elements): Undocument nth, nthcdr with n < 0
Glenn Morris [Tue, 13 Aug 2013 07:15:27 +0000 (00:15 -0700)]
* lispref/lists.texi (List Elements): Undocument nth, nthcdr with n < 0

10 years ago* admin/FOR-RELEASE: Add note about bad Texinfo node names
Glenn Morris [Tue, 13 Aug 2013 07:04:10 +0000 (00:04 -0700)]
* admin/FOR-RELEASE: Add note about bad Texinfo node names

10 years agoMerge from emacs-24; up to 2013-01-02T16:37:04Z!eggert@cs.ucla.edu
Glenn Morris [Tue, 13 Aug 2013 07:02:00 +0000 (00:02 -0700)]
Merge from emacs-24; up to 2013-01-02T16:37:04Z!eggert@cs.ucla.edu

10 years agoRename some doc/misc info nodes to avoid chars that can cause Texinfo problems
Glenn Morris [Tue, 13 Aug 2013 06:55:21 +0000 (23:55 -0700)]
Rename some doc/misc info nodes to avoid chars that can cause Texinfo problems

* reftex.texi (LaTeX xr Package, Options - Table of Contents)
(Options - Defining Label Environments, Options - Creating Labels)
(Options - Referencing Labels, Options - Creating Citations)
(Options - Index Support, Options - Viewing Cross-References)
(Options - Finding Files, Options - Optimizations)
(Options - Fontification, Options - Misc):
* cc-mode.texi (Sample Init File):
* edt.texi (Init file):
* epa.texi (Encrypting/decrypting gpg files):
* mairix-el.texi (About, Setting up the mairix interface, Using)
(Extending):
Rename nodes to avoid characters that can cause Texinfo problems.

10 years ago* doc/lispref/frames.texi (Display Feature Testing): Add indexes.
Xue Fuqiao [Tue, 13 Aug 2013 02:45:12 +0000 (10:45 +0800)]
* doc/lispref/frames.texi (Display Feature Testing): Add indexes.

10 years ago* lisp/emacs-lisp/timer.el (timer--time-setter): New function.
Stefan Monnier [Tue, 13 Aug 2013 02:30:52 +0000 (22:30 -0400)]
* lisp/emacs-lisp/timer.el (timer--time-setter): New function.
(timer--time): Use it as gv-setter.
* lisp/emacs-lisp/gv.el (gv-define-simple-setter): Output warning when
setter is not a symbol.

10 years ago* doc/lispref/frames.texi (Display Feature Testing): Add an index.
Xue Fuqiao [Tue, 13 Aug 2013 02:15:57 +0000 (10:15 +0800)]
* doc/lispref/frames.texi (Display Feature Testing): Add an index.

10 years ago* process.c (deactivate_process): Reset fds to -1.
Paul Eggert [Mon, 12 Aug 2013 20:17:32 +0000 (13:17 -0700)]
* process.c (deactivate_process): Reset fds to -1.

This fixes a problem introduced by the Bug#15035 patch
when using GPG.  Reported by Herbert J. Skuhra.

10 years agoFix zlib support on MS-Windows.
Eli Zaretskii [Mon, 12 Aug 2013 19:48:04 +0000 (22:48 +0300)]
Fix zlib support on MS-Windows.

 configure.ac (HAVE_ZLIB): Don't use -lz on MinGW.

 src/decompress.c <zlib_initialized> [WINDOWSNT]: New static variable.
 (Fzlib_decompress_region) [WINDOWSNT]: Call init_zlib_functions if
 not yet initialized.

10 years agoAdd a test for decompressing gzipped data
Lars Magne Ingebrigtsen [Mon, 12 Aug 2013 18:36:05 +0000 (20:36 +0200)]
Add a test for decompressing gzipped data

10 years ago* mail/sendmail.el (sendmail-send-it): Don't kill the error buffer on error
Grégoire Jadi [Mon, 12 Aug 2013 17:25:22 +0000 (19:25 +0200)]
* mail/sendmail.el (sendmail-send-it): Don't kill the error buffer on error

This makes debugging easier.

10 years agoRename `zlib-decompress-gzipped-region' to `zlib-decompress-region'.
Lars Magne Ingebrigtsen [Mon, 12 Aug 2013 17:02:31 +0000 (19:02 +0200)]
Rename `zlib-decompress-gzipped-region' to `zlib-decompress-region'.

Also support zlib-format compression.

10 years agoMinor zlib configuration tweaks.
Paul Eggert [Mon, 12 Aug 2013 16:05:58 +0000 (09:05 -0700)]
Minor zlib configuration tweaks.

* configure.ac (HAVE_ZLIB): Don't assume zlib is linked if PNG is.
* src/decompress.c (fn_inflateInit2) [!WINDOWSNT]:
Don't assume presence of fn_inflateInit2_ zlib internal function.

10 years agolisp/xml.el (xml-parse-tag-1): Use looking-at.
Juanma Barranquero [Mon, 12 Aug 2013 15:11:35 +0000 (17:11 +0200)]
lisp/xml.el (xml-parse-tag-1): Use looking-at.
(This reverts change in 2013-08-11T00:07:48Z!lekktu@gmail.com, which breaks the test suite).
https://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00263.html

10 years agoAdd the zlib prefix to `decompress-gzipped-region'
Lars Magne Ingebrigtsen [Mon, 12 Aug 2013 13:54:45 +0000 (15:54 +0200)]
Add the zlib prefix to `decompress-gzipped-region'

10 years agoFix build with zlib on MS-Windows.
Eli Zaretskii [Mon, 12 Aug 2013 13:15:01 +0000 (16:15 +0300)]
Fix build with zlib on MS-Windows.

 configure.ac (LIBZ): Comment on w32 peculiarities regarding LIBZ.

 src/decompress.c [WINDOWSNT]: Include windows.h and w32.h.
 (DEF_ZLIB_FN, LOAD_ZLIB_FN) [WINDOWSNT]: New macros.  Use them to
 define static variables that are pointers to zlib functions to be
 dynamically loaded.
 (init_zlib_functions) [WINDOWSNT]: New function.
 (fn_inflateInit2_, fn_inflate, fn_inflateEnd, fn_inflateInit2):
 New macros.
 (Fdecompress_gzipped_region, unwind_decompress): Use the fn_*
 macros instead of invoking the zlib functions directly.
 (syms_of_decompress): DEFSYM Qzlib_dll.  Staticpro
 Szlib_available_p.

 lisp/term/w32-win.el (dynamic-library-alist): Add DLLs for zlib.

10 years agoAuto-commit of generated files.
Glenn Morris [Mon, 12 Aug 2013 10:17:43 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoAvoid looping over all frame windows to freeze and unfreeze.
Dmitry Antipov [Mon, 12 Aug 2013 09:34:00 +0000 (13:34 +0400)]
Avoid looping over all frame windows to freeze and unfreeze.
* window.h (struct window): Drop frozen_window_start_p.
(freeze_window_starts): Drop prototype.
* frame.h (struct frame): New frozen_window_starts flag.
(FRAME_WINDOWS_FROZEN): New macro.
* window.c (freeze_window_start, freeze_window_starts):
Remove.
(select_window, replace_window): Adjust users.
* xdisp.c (resize_mini_window): Use FRAME_WINDOWS_FROZEN.
(window_frozen_p): New function.
(redisplay_window): Use it.

10 years agoFix some fd issues when running subprocesses.
Paul Eggert [Mon, 12 Aug 2013 07:12:07 +0000 (00:12 -0700)]
Fix some fd issues when running subprocesses.

Fix bugs that can leak files or file descriptors on errors.
Don't unlink open temp files, as that's hard for users to diagnose
when things go awry (e.g., temp disk exhausted).
Don't bother to lock temp files.  Check for invalid recursion.
* callproc.c (synch_process_fd): Remove.  All uses removed.
(synch_process_tempfile): New var or macro.
(CALLPROC_STDOUT, CALLPROC_STDERR, CALLPROC_PIPEREAD, CALLPROC_FDS):
New constants.
(record_kill_process): New arg, the temp name.  All callers changed.
(delete_temp_file): Now just a simple wrapper around unlink.
(call_process_kill): New arg, the call_process_fd array.
Close them all.  Clear synch_process_pid.  Remove the temp file,
or arrange for it to be removed.
(call_process_cleanup) [MSDOS]: Arg no longer contains file name;
that's been moved to synch_process_tempfile.  Caller changed.
Do not remove the tempfile; that's now call_process_kill's
responsibility.
(call_process_cleanup) [!MSDOS]: Do not record unwind-protect for
call_process_kill; the caller now does that.
(call_process_cleanup): Do not close the process fd; that's now
call_process_kill's responsibility.
(Fcall_process): Implement via new function call_process, which
has most of the old body of Fcall_process, but with a different API.
(call_process): New function that does not open or close filefd if
it is nonnegative.  Record which fds need to be closed, and let
call_process_kill close (and remove the tempfile, on MSDOS) on error.
Signal an error if invoked recursively (could be done via a hook).
Simplify creation of the tempfile in the MSDOS case.
Don't create the output file until after checking for the executable.
Report any failure to open /dev/null.
Don't open /dev/null for writing twice; once is enough.
Don't create pipe if all output is being discarded or sent to file.
Don't worry about setting up the coding system or reading from the
pipe if all output is being discarded.
Hoist fd_error local into top level, to lessen block nesting.
Don't record deleted pid here; now done by Fcall_process_region.
(Fcall_process) [MSDOS]: Report mktemp failure immediately,
and note its success in synch_process_tempfile.
Do not leak resources when child_setup fails.
(Fcall_process) [!MSDOS && !WINDOWSNT]: Remove duplicate assignment
to child_errno.  Remove unnecessary close of fd0; it's close-on-exec.
(create_temp_file): Now returns open fd, with an additional
Lisp_Object * argument to return the name.  All callers changed.
Do not close the file; rewind it instead, and leave it open for
the caller.  Do not lock the temp file.  Unwind-protect the file
and the file-descriptor.
(Fcall_process_region): If the input is /dev/null, unwind-protect it.
If an asynchrounous process, record it here, not in call_process.
(syms_of_callproc) [MSDOS]: Initialize synch_process_tempfile.
* eval.c (set_unwind_protect): New function.
* fileio.c (write_region): New function, generalized from the
old Fwrite_region.  Do not lock temp files.
(Fwrite_region): Use it.
* lisp.h (set_unwind_protect, write_region): New decls.
* process.c: Include <verify.h>.
(make_process): Mark fds as initially closed.
(deleted_pid_list): Now a list of pid-filename pairs.
All uses changed.
(close_process_fd): New function.
(SUBPROCESS_STDIN, WRITE_TO_SUBPROCESS, READ_FROM_SUBPROCESS)
(SUBPROCESS_STDOUT, READ_FROM_EXEC_MONITOR, EXEC_MONITOR_OUTPUT):
New constants.  Verify that their number matches PROCESS_OPEN_FDS.
(create_process, create_pty, Fmake_serial_process)
(server_accept_connection): Record which fds need to be closed,
and let deactivate_process close them.
(Fmake_network_process): Do not discard the unwind-protect
until it's safe to do so.
(deactivate_process): Close the fds opened by create_process etc.
(Fprocess_send_eof): Adjust to new way of recording open fds.
Report an error if /dev/null can't be opened, instead of aborting.
* process.h (PROCESS_OPEN_FDS): New constant.
(struct Lisp_Process): New member open_fds.
(record_kill_process, record_deleted_pid): Adjust signatures.
(record_deleted_pid): Move decl here ...
* syswait.h (record_deleted_pid): ... from here.

Fixes: debbugs:15035

10 years agolisp/gnus/ChangeLog: Fix typo
Katsumi Yamaoka [Mon, 12 Aug 2013 06:32:15 +0000 (06:32 +0000)]
lisp/gnus/ChangeLog: Fix typo

10 years agolisp/gnus/mm-decode.el (mm-display-external): Run a timer for the temp files deletion...
Katsumi Yamaoka [Mon, 12 Aug 2013 05:59:47 +0000 (05:59 +0000)]
lisp/gnus/mm-decode.el (mm-display-external): Run a timer for the temp files deletion after a viwer exits; add a deletion timer for the needsterm case, too

10 years agodoc/misc/gnus.texi (Mail Source Specifiers): Fix description for pop3's :leave
Katsumi Yamaoka [Mon, 12 Aug 2013 01:48:11 +0000 (01:48 +0000)]
doc/misc/gnus.texi (Mail Source Specifiers): Fix description for pop3's :leave

10 years ago* etc/refcards/Makefile (dist): New rule.
Glenn Morris [Mon, 12 Aug 2013 01:14:23 +0000 (18:14 -0700)]
* etc/refcards/Makefile (dist): New rule.

10 years agolisp/gnus/mm-decode.el (mm-display-external): Try to delete temporary files by using...
Katsumi Yamaoka [Mon, 12 Aug 2013 01:03:33 +0000 (01:03 +0000)]
lisp/gnus/mm-decode.el (mm-display-external): Try to delete temporary files by using a 1-min. timer

10 years agoetc/refcards/Makefile tweaks
Glenn Morris [Mon, 12 Aug 2013 01:03:09 +0000 (18:03 -0700)]
etc/refcards/Makefile tweaks

* etc/refcards/Makefile (all_pdf, all_ps, fr-survival.ps): New targets.
(SURVIVAL_CARDS_PDF): Add fr_survival.pdf.

10 years agoMerge from gnulib.
Paul Eggert [Mon, 12 Aug 2013 00:52:17 +0000 (17:52 -0700)]
Merge from gnulib.

This incorporates:
2013-08-11 fpending: port to recent Cygwin change to stdio_ext.h
2013-08-10 sys_time: port to OpenBSD

10 years agoReduce some duplication in doc/misc/Makefile.in
Glenn Morris [Mon, 12 Aug 2013 00:41:34 +0000 (17:41 -0700)]
Reduce some duplication in doc/misc/Makefile.in

* doc/misc/Makefile.in (ada_mode_deps, auth_deps, autotype_deps)
(bovine_deps, calc_deps, ccmode_deps, cl_deps, dbus_deps)
(dired_x_deps, ebrowse_deps, ede_deps, ediff_deps, edt_deps)
(eieio_deps, emacs_gnutls_deps, emacs_mime_deps, epa_deps)
(erc_deps, ert_deps, eshell_deps, eudc_deps, faq_deps)
(flymake_deps, forms_deps, gnus_deps, htmlfontify_deps)
(idlwave_deps, ido_deps, info_deps, mairix_el_deps, message_deps)
(mh_e_deps, newsticker_deps, nxml_mode_deps, org_deps)
(pcl_cvs_deps, pgg_deps, rcirc_deps, reftex_deps, remember_deps)
(sasl_deps, sc_deps, semantic_deps, ses_deps, sieve_deps)
(smtpmail_deps, speedbar_deps, srecode_deps, todo_mode_deps)
(tramp_deps, url_deps, vip_deps, viper_deps, widget_deps)
(wisent_deps, woman_deps): New variables.  Use throughout.

10 years agoMerge from emacs-24; up to 2013-01-02T10:15:31Z!michael.albinus@gmx.de
Glenn Morris [Mon, 12 Aug 2013 00:09:11 +0000 (17:09 -0700)]
Merge from emacs-24; up to 2013-01-02T10:15:31Z!michael.albinus@gmx.de

10 years agoAdd build, install, uninstall rules for all dvi, html, pdf, ps manuals
Glenn Morris [Mon, 12 Aug 2013 00:04:15 +0000 (17:04 -0700)]
Add build, install, uninstall rules for all dvi, html, pdf, ps manuals

* configure.ac (etcdocdir): Rename from docdir, to avoid confusion
with configure's standard --docdir argument.  All uses updated.

* Makefile.in (etcdocdir): Rename from docdir.  All uses updated.
(install-etcdoc): Rename from install-doc.  All uses updated.
(uninstall): Run uninstall-doc.
(PSS): Add misc-ps.
(INSTALL_DVI, INSTALL_HTML, INSTALL_PDF, INSTALL_PS)
(INSTALL_DOC, UNINSTALL_DVI, UNINSTALL_HTML, UNINSTALL_PDF)
(UNINSTALL_PS, UNINSTALL_DOC): New variables.
($(INSTALL_DOC), install-doc, install-dvi, install-html, install-pdf)
(install-ps, $(UNINSTALL_DOC), uninstall-doc, uninstall-dvi)
(uninstall-html, uninstall-pdf, uninstall-ps): New .PHONY rules.

* doc/emacs/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
(docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
(INSTALL_DATA): New, set by configure.
(HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
New variables.
(.SUFFIXES): Add .ps and .dvi.
(.dvi.ps): New suffix rule.
(dvi, html, pdf, ps): Use *_TARGETS variables.
(emacs.ps, emacs-xtra.ps): Remove explicit rules.
(emacs.html): Use HTML_OPTS.
(clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
(.PHONY): install-dvi, install-html, install-pdf, install-ps
,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
uninstall-ps, and uninstall-doc.
(install-dvi, install-html, install-pdf, install-ps, install-doc)
(uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
(uninstall-doc): New rules.

* doc/lispintro/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
(docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
(INSTALL_DATA): New, set by configure.
(HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
New variables.
(.SUFFIXES): Add .ps and .dvi.
(.dvi.ps): New suffix rule.
(dvi, html, pdf, ps): Use *_TARGETS variables.
(emacs-lisp-intro.ps): Remove explicit rule.
(emacs-lisp-intro.html): Use HTML_OPTS.
(clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
(.PHONY): install-dvi, install-html, install-pdf, install-ps
,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
uninstall-ps, and uninstall-doc.
(install-dvi, install-html, install-pdf, install-ps, install-doc)
(uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
(uninstall-doc): New rules.

* doc/lispref/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
(docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
(INSTALL_DATA): New, set by configure.
(HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
New variables.
(.SUFFIXES): Add .ps and .dvi.
(.dvi.ps): New suffix rule.
(dvi, html, pdf, ps): Use *_TARGETS variables.
(elisp.html): Use HTML_OPTS.
(elisp.ps): Remove explicit rule.
(.PHONY): install-dvi, install-html, install-pdf, install-ps
,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
uninstall-ps, and uninstall-doc.
(install-dvi, install-html, install-pdf, install-ps, install-doc)
(uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
(uninstall-doc): New rules.
(clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.

* doc/misc/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
(docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
(INSTALL_DATA): New, set by configure.
(HTML_OPTS, HTML_TARGETS, PS_TARGETS, DVIPS): New variables.
(.PHONY): Add html, ps, install-dvi, install-html, install-pdf,
install-ps ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
uninstall-ps, and uninstall-doc.
(.SUFFIXES): Add .ps and .dvi.
(.dvi.ps): New suffix rule.
(html, ps, ada-mode.html, auth.html, autotype.html, bovine.html)
(calc.html, cc-mode.html, cl.html, dbus.html, dired-x.html)
(ebrowse.html, ede.html, ediff.html, edt.html, eieio.html)
(emacs-gnutls.html, emacs-mime.html, epa.html, erc.html)
(ert.html, eshell.html, eudc.html, faq.html, flymake.html)
(forms.html, gnus.html, htmlfontify.html, idlwave.html)
(ido.html, mairix-el.html, message.html, mh-e.html)
(newsticker.html, nxml-mode.html, org.html, pgg.html)
(rcirc.html, reftex.html, remember.html, sasl.html, sc.html)
(semantic.html, sieve.html, smtpmail.html, speedbar.html)
(srecode.html, todo-mode.html, tramp.html, url.html, vip.html)
(viper.html, widget.html, wisent.html, woman.html, install-dvi)
(install-html, install-pdf, install-ps, install-doc, uninstall-dvi)
(uninstall-html, uninstall-ps, uninstall-pdf, uninstall-doc):
New rules.
(clean): Remove HTML_TARGETS and PS_TARGETS.

10 years ago* decompress.c: Fix bugs with large buffers and weird inputs.
Paul Eggert [Sun, 11 Aug 2013 23:09:26 +0000 (16:09 -0700)]
* decompress.c: Fix bugs with large buffers and weird inputs.

Tune a bit.  Reindent as per usual Emacs style.
(BUFFER_SIZE): Remove.
(Fdecompress_gzipped_region): Do not mishandle input buffers with
more than UINT_MAX bytes.  Decompress into the gap instead of into
an auto buffer, as this should avoid copying.  Return nil if
'inflate' returns Z_NEED_DICT, as we have no dictionary.  Do not
set immediate_quit; we shouldn't trust zlib code that much.

10 years agoAdd --with-zlib to 'configure'.
Paul Eggert [Sun, 11 Aug 2013 22:58:47 +0000 (15:58 -0700)]
Add --with-zlib to 'configure'.

* configure.ac: Add --with-zlib option to 'configure', so that Emacs
can be built without zlib.  Don't assume that -lz is needed on
non-PNG hosts.  Mention zlib configuration status in 'configure' output.

10 years ago* net/eww.el (eww-display-html): Ignore coding system errors.
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 21:51:10 +0000 (23:51 +0200)]
* net/eww.el (eww-display-html): Ignore coding system errors.

One web site uses "utf-8lias" as the coding system.

10 years agoAdd Content-Transfer gzip support to url
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 20:52:50 +0000 (22:52 +0200)]
Add Content-Transfer gzip support to url

* url-http.el (url-handle-content-transfer-encoding): Support
decompressing gzipped content.

* url-vars.el (url-mime-encoding-string): If we have built-in gzip
support, say that we accept gzipped content.

10 years agoFix decompress gap handling bug
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 20:51:47 +0000 (22:51 +0200)]
Fix decompress gap handling bug

* decompress.c (Fdecompress_gzipped_region): Respect all zlib
errors, and really move the gap to where we want it.

10 years agoAdd zlib support via the `decompress-gzipped-region' function
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 19:43:36 +0000 (21:43 +0200)]
Add zlib support via the `decompress-gzipped-region' function

This adds a new file, src/decompress.c, as well as tests for the
presence of -lz.

10 years agoFix crash on OSX >= 10.7.
Jan Djärv [Sun, 11 Aug 2013 15:34:26 +0000 (17:34 +0200)]
Fix crash on OSX >= 10.7.

* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:frame:
(initWithTitle:): Initialize frame to 0.
(fillWithWidgetValue:): Call fillWithWidgetValue:frame.
(fillWithWidgetValue:frame:): Renamed from
fillWithWidgetValue:setDelegate, call initWithTile:frame: if f.

* nsterm.h (EmacsMenu): fillWithWidgetValue:setDelegate renamed to
fillWithWidgetValue:frame:

10 years agoFix memory leak warning.
Jan Djärv [Sun, 11 Aug 2013 15:05:13 +0000 (17:05 +0200)]
Fix memory leak warning.

* nsfns.m (Fns_convert_utf8_nfd_to_nfc): Allocate and release pool to
remove memory leak warnings.

10 years ago* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
Jan Djärv [Sun, 11 Aug 2013 14:57:12 +0000 (16:57 +0200)]
* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
(x_activate_menubar): Update the whole menu.
(trackingNotification:): Call ns_check_menu_open if tracking ends.
(menuWillOpen:): Increment trackingMenu.  For OSX <= 10.6, exit if
current event is not NSSystemDefined.
Call ns_check_menu_open only if trackingMenu is 2.
(menuDidClose:): New method, decrease trackingMenu.
(fillWithWidgetValue:setDelegate:): New method.
(fillWithWidgetValue:): Call the above.

* nsterm.h (EmacsMenu): Add fillWithWidgetValue:setDelegate:

* nsterm.m (menu_pending_title, ns_get_pending_menu_title): Remove.
(ns_check_menu_open): Handle menu == nil.  Remove assignment to
menu_pending_title.

Fixes: debbugs:15001

10 years agolisp/frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.
Juanma Barranquero [Sun, 11 Aug 2013 03:09:21 +0000 (05:09 +0200)]
lisp/frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.

10 years agoOmit some unnecessary casts.
Paul Eggert [Sun, 11 Aug 2013 01:30:20 +0000 (18:30 -0700)]
Omit some unnecessary casts.

Many of these go back to the old pre-C89 days, when they may have
been needed, but we've been assuming C89 or later for a while now.
* alloc.c (live_string_p, live_cons_p, live_symbol_p)
(live_float_p, live_misc_p, live_vector_p):
* buffer.c (compare_overlays, cmp_for_strings, mmap_find)
(mmap_alloc, alloc_buffer_text, enlarge_buffer_text)
(defvar_per_buffer):
* callint.c (Fcall_interactively):
* doc.c (Fsubstitute_command_keys):
* filelock.c (get_boot_time):
* frame.c (xrdb_get_resource):
* gtkutil.c (hierarchy_ch_cb, qttip_cb, style_changed_cb)
(delete_cb, xg_dialog_response_cb, xg_maybe_add_timer)
(xg_get_file_name_from_selector, menuitem_destroy_callback)
(menuitem_highlight_callback, menu_destroy_callback)
(xg_update_menu_item, xg_modify_menubar_widgets, menubar_map_cb)
(xg_tool_bar_callback, xg_get_tool_bar_widgets)
(xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
(xg_tool_bar_help_callback, tb_size_cb):
* image.c (xpm_alloc_color, png_read_from_memory)
(png_read_from_file, png_load_body, our_memory_skip_input_data)
(jpeg_memory_src, jpeg_file_src, imagemagick_load_image)
(syms_of_image):
* keymap.c (describe_map):
* nsfns.m (Fns_display_monitor_attributes_list):
* nsmenu.m (process_dialog:):
* nsterm.m (hold_event):
* process.c (wait_reading_process_output):
* regex.c (REGEX_REALLOCATE, re_set_registers, re_exec, regexec):
* scroll.c (do_direct_scrolling, scrolling_1):
* termcap.c (tgetent):
* window.c (check_window_containing, add_window_to_list)
(freeze_window_starts):
* xdisp.c (compare_overlay_entries, vmessage):
* xfns.c (x_window, x_get_monitor_attributes_xinerama)
(x_get_monitor_attributes_xrandr)
(Fx_display_monitor_attributes_list, x_display_info_for_name)
(Fx_open_connection, file_dialog_cb, file_dialog_unmap_cb):
* xfont.c (xfont_match, xfont_open):
* xmenu.c (x_menu_wait_for_event, menu_highlight_callback)
(menubar_selection_callback, menu_position_func)
(popup_selection_callback, create_and_show_popup_menu)
(dialog_selection_callback, create_and_show_dialog):
* xrdb.c (x_get_string_resource):
(main) [TESTRM]:
* xsmfns.c (x_session_check_input):
* xterm.c (x_draw_glyphless_glyph_string_foreground)
(xm_scroll_callback, xg_scroll_callback, xg_end_scroll_callback)
(xaw_jump_callback, xaw_scroll_callback):
Omit unnecessary casts.

10 years agolisp/*.el: More lexical-binding warnings' cleanups.
Juanma Barranquero [Sun, 11 Aug 2013 00:07:48 +0000 (02:07 +0200)]
lisp/*.el: More lexical-binding warnings' cleanups.

* tutorial.el (tutorial--describe-nonstandard-key): Use string-match-p.
  (tutorial--detailed-help): Remove unused local variables.
  (tutorial--save-tutorial-to): Use ignore-errors.
  (help-with-tutorial): Use looking-at-p.

* view.el (view-buffer-other-window, view-buffer-other-frame):
  Mark unused arguments.

* woman.el (woman-parse-colon-path, woman-parse-colon-path)
  (woman-select-symbol-fonts, woman, woman-find-file)
  (woman-insert-file-contents, woman-non-underline-faces):
  Use string-match-p.
  (woman1-unquote): Move declaration.

* xml.el (xml-parse-tag-1, xml-parse-string): Use looking-at-p.
  (xml-parse-dtd): Use looking-at-p, string-match-p.  Mark unused
  argument.  Remove unused local variable.
  (xml-parse-elem-type): Use string-match-p.
  (xml-substitute-numeric-entities): Use ignore-errors.

10 years agoAdd some notes related to continuous build on Hydra
Xue Fuqiao [Sat, 10 Aug 2013 22:54:32 +0000 (06:54 +0800)]
Add some notes related to continuous build on Hydra