Merge from emacs-24; up to 2014-03-23T23:14:52Z!yamaoka@jpl.org
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 26 Mar 2014 15:57:13 +0000 (16:57 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 26 Mar 2014 15:57:13 +0000 (16:57 +0100)
14 files changed:
1  2 
ChangeLog
doc/lispref/ChangeLog
doc/lispref/files.texi
doc/misc/ChangeLog
lisp/ChangeLog
lisp/frameset.el
lisp/simple.el
src/ChangeLog
src/buffer.c
src/fileio.c
src/insdel.c
src/lisp.h
src/w32term.c
test/ChangeLog

diff --cc ChangeLog
+++ b/ChangeLog
@@@ -1,24 -1,9 +1,30 @@@
+ 2014-03-26  Paul Eggert  <eggert@cs.ucla.edu>
+       Merge from gnulib, incorporating:
+       2014-03-26 strftime: wrap macros in "do {...} while(0)"
+       * lib/strftime.c: Update from gnulib.
 +2014-03-26  Glenn Morris  <rgm@gnu.org>
 +
 +      * configure.ac (CLASH_DETECTION): Remove option.  Every platform
 +      supports it, and the runtime option `create-lockfiles' replaces it.
 +
 +2014-03-23  Daniel Colascione  <dancol@dancol.org>
 +
 +      * configure.ac: (Bug#17069) Include GFILENOTIFY objects in glib check.
 +
 +2014-03-22  Glenn Morris  <rgm@gnu.org>
 +
 +      * make-dist: Do not distribute lib-src/testfile.
 +
 +2014-03-21  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * configure.ac: Bump version to 24.4.50.
 +
 +2014-03-21  Glenn Morris  <rgm@gnu.org>
 +
 +      * Makefile.in (all): Depend on `info'.  (Bug#16626)
 +
  2014-03-07  Paul Eggert  <eggert@cs.ucla.edu>
  
        Merge from gnulib, incorporating:
@@@ -1,15 -1,18 +1,28 @@@
 -2014-03-25  Eli Zaretskii  <eliz@gnu.org>
++2014-03-26  Eli Zaretskii  <eliz@gnu.org>
+       * files.texi (Kinds of Files): Improve documentation of
+       file-symlink-p.  (Bug#17073)  Add cross-references.
 -2014-03-24  Barry O'Reilly  <gundaetiapo@gmail.com>
++2014-03-26  Barry O'Reilly  <gundaetiapo@gmail.com>
+       * markers.texi (Moving Marker Positions): The 2014-03-02 doc
+       change mentioning undo's inability to handle relocated markers no
+       longer applies.  See bug#16818.
+       * text.texi (Undo): Expand documentation of (TEXT . POS) and
+       (MARKER . ADJUSTMENT) undo elements.
 +2014-03-26  Glenn Morris  <rgm@gnu.org>
 +
 +      * files.texi (File Locks): All systems support locking.
 +
  2014-03-22  Glenn Morris  <rgm@gnu.org>
  
 +      * commands.texi (Defining Commands):
 +      Mention that interactive-only also affects describe-function.
 +
 +      * functions.texi (Declare Form): Add interactive-only.
 +      * commands.texi (Defining Commands) Mention declare.
 +
        * commands.texi (Defining Commands): List interactive-only values.
  
  2014-03-22  Eli Zaretskii  <eliz@gnu.org>
Simple merge
@@@ -1,30 -1,11 +1,38 @@@
 -2014-03-24  Michael Albinus  <michael.albinus@gmx.de>
+ 2014-03-26  Paul Eggert  <eggert@cs.ucla.edu>
+       * texinfo.tex: Update from gnulib.
++2014-03-26  Michael Albinus  <michael.albinus@gmx.de>
+       * tramp.texi (Frequently Asked Questions): Add fish shell settings.
 +2014-03-23  Katsumi Yamaoka  <yamaoka@jpl.org>
 +
 +      * gnus.texi (Ma Gnus): Mention header attachment buttons.
 +
 +2014-03-23  Lars Ingebrigtsen  <larsi@gnus.org>
 +
 +      * emacs-mime.texi (MML Definition): Document recipient-filename.
 +
 +2014-03-23  Katsumi Yamaoka  <yamaoka@jpl.org>
 +
 +      * gnus.texi (MIME Commands): Mention
 +      gnus-mime-buttonize-attachments-in-header and
 +      gnus-mime-display-attachment-buttons-in-header.
 +
 +2014-03-23  Lars Ingebrigtsen  <larsi@gnus.org>
 +
 +      * message.texi (Forwarding): Mention
 +      `message-forward-included-headers'.
 +
 +2014-03-23  Lars Ingebrigtsen  <larsi@gnus.org>
 +
 +      * gnus.texi: w3 is no longer supported by Gnus.
 +
 +2014-03-22  Glenn Morris  <rgm@gnu.org>
 +
 +      * efaq.texi (Informational files for Emacs): Do not mention etc/GNU.
 +
  2014-03-21  Glenn Morris  <rgm@gnu.org>
  
        * ede.texi (ede-linux):
diff --cc lisp/ChangeLog
 -2014-03-25  Barry O'Reilly  <gundaetiapo@gmail.com>
 -
 -      * simple.el (primitive-undo): Correction to 2014-03-24 change.
 -
 -2014-03-25  Michael Albinus  <michael.albinus@gmx.de>
+ 2014-03-26  Juanma Barranquero  <lekktu@gmail.com>
+       * emacs-lisp/package.el: Fix bug#16733 (again).
+       (url-http-parse-response, url-http-end-of-headers, url-recreate-url)
+       (url-http-target-url): Remove unused declarations.
+       (package-handle-response): Remove.
+       (package--with-work-buffer): Use url-insert-file-contents and simplify.
+       (package--download-one-archive): Use current-buffer instead of
+       dynamic binding of `buffer'.
+       (describe-package-1): Do not decode readme-string.
 -2014-03-24  Barry O'Reilly  <gundaetiapo@gmail.com>
++2014-03-26  Michael Albinus  <michael.albinus@gmx.de>
+       * net/tramp.el (tramp-methods, tramp-connection-timeout): Fix docstring.
+       * net/tramp-sh.el (tramp-sh-handle-vc-registered): Revert change
+       from 2014-03-07, it decreases performance unnecessarily.  Let-bind
+       `remote-file-name-inhibit-cache' to nil in the second pass.
+       (tramp-find-executable): Do not call "which" on SunOS.
+       (tramp-send-command-and-check): Fix docstring.
+       (tramp-do-copy-or-rename-file-directly): In the `rename' case,
+       check whether source directory has set the sticky bit.
 -2014-03-24  Dmitry Gutov  <dgutov@yandex.ru>
 -
 -      * emacs-lisp/package.el (package--add-to-archive-contents):
 -      Include already installed and built-in packages in
 -      `package-archive-contents'.
 -      (package-install): Don't include already installed packages in the
 -      options during interactive invocation.  (Bug#16762)
 -
 -2014-03-24  Daniel Colascione  <dancol@dancol.org>
 -
 -      * emacs-lisp/cl-macs.el (cl--do-arglist): Use `plist-member'
 -      instead of cl-loop search function.
 -
 -2014-03-24  Juanma Barranquero  <lekktu@gmail.com>
 -
 -      * frameset.el (frameset--initial-params): Fix typo in parameter name.
 -
 -2014-03-24  Nicolas Richard  <theonewiththeevillook@yahoo.fr>
++2014-03-26  Barry O'Reilly  <gundaetiapo@gmail.com>
+       * simple.el (primitive-undo): Only process marker adjustments
+       validated against their corresponding (TEXT . POS).  Issue warning
+       for lone marker adjustments in undo history.  (Bug#16818)
+       (undo-make-selective-list): Add marker adjustments to selective
+       undo list based on whether their corresponding (TEXT . POS) is in
+       the region.  Remove variable adjusted-markers, which was unused
+       and only non nil during undo-make-selective-list.
+       (undo-elt-in-region): Return nil when passed a marker adjustment
+       and explain in function doc.
 -2014-03-24  Dmitry Gutov  <dgutov@yandex.ru>
++2014-03-26  Nicolas Richard  <theonewiththeevillook@yahoo.fr>
+       * align.el (align-region): Do not fail when end-mark is nil (bug#17088).
 -2014-03-23  Stefan Monnier  <monnier@iro.umontreal.ca>
++2014-03-26  Dmitry Gutov  <dgutov@yandex.ru>
+       * progmodes/ruby-mode.el (ruby-expression-expansion-re):
+       Match special global variables without curlies, too.
+       (ruby-font-lock-keywords): Simplify the matcher for special global
+       variables.  Don't require a non-word character after the variable.
+       (Bug#17057)
 -2014-03-23  Juanma Barranquero  <lekktu@gmail.com>
++2014-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * simple.el (redisplay-highlight-region-function): Increase priority of
+       overlay to make sure boundaries are visible (bug#15899).
 -      * frameset.el (frameset-restore): Compare display strings with equal.
++2014-03-26  Juanma Barranquero  <lekktu@gmail.com>
 -2014-03-23  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
++      * frameset.el (frameset--initial-params): Fix typo in parameter name.
++      (frameset-restore): Compare display strings with equal.
+       * frame.el (make-frame): Don't quote display name in error message,
+       it is already a string.
 -2014-03-23  Dmitry Gutov  <dgutov@yandex.ru>
++2014-03-26  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
+       * net/tramp.el (tramp-read-passwd): Suspend the timers while reading
+       the password.
 -      * emacs-lisp/package.el (package-show-package-list): If the buffer
 -      is already displayed in another window, switch to that window.
++2014-03-26  Dmitry Gutov  <dgutov@yandex.ru>
++      * emacs-lisp/package.el (package--add-to-archive-contents):
++      Include already installed and built-in packages in
++      `package-archive-contents'.
++      (package-install): Don't include already installed packages in the
++      options during interactive invocation.  (Bug#16762)
++      (package-show-package-list): If the buffer is already displayed in
++      another window, switch to that window.
++
 +2014-03-26  Reto Zimmermann  <reto@gnu.org>
 +
 +      Sync with upstream vhdl mode v3.35.1.
 +      * progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp): Update.
 +      (vhdl-compiler-alist): Doc fix.
 +      (vhdl-goto-line): Remove.
 +      (vhdl-mode-abbrev-table-init): Add XEmacs compat.
 +      (vhdl-mode) <paragraph-start>: Fix value.
 +      (vhdl-fix-statement-region): Not `for' in wait-statement.
 +      (vhdl-beautify-region): Also (un)tabify.
 +      (vhdl-get-visible-signals):
 +      Scan declarative part of generate statements.
 +      (vhdl-template-record): Fix indentation for record type declaration.
 +      (vhdl-expand-abbrev, vhdl-expand-paren):
 +      Revert to using fset again rather than defalias.
 +      (vhdl-scan-directory-contents): Tweak.
 +      (vhdl-speedbar-find-file, vhdl-speedbar-port-copy)
 +      (vhdl-compose-components-package):
 +      Replace vhdl-goto-line with forward-line.
 +      (top-level): Tweak speedbar frame selection.
 +      (vhdl-generate-makefile-1): Support for compilers with no
 +      unit-to-file name mapping (create directory with dummy files).
 +
 +2014-03-26  Wilson Snyder  <wsnyder@wsnyder.org>
 +
 +      Sync with upstream verilog-mode revision 702457d.
 +      * progmodes/verilog-mode.el (verilog-mode-version): Update.
 +      (create-lockfiles): Declare.
 +      (verilog-read-decls): Fix module header imports, bug709.
 +      Reported by Victor Lau.
 +      Fix parsing 'var' in AUTOs, msg1294.  Reported by Dominique Chen.
 +      (verilog-auto-inout-module): Fix AUTOINOUTMODULE not inserting
 +      interface-only modules, bug721.  Reported by Dean Hoyt.
 +
 +2014-03-26  Glenn Morris  <rgm@gnu.org>
 +
 +      * obsolete/gulp.el: Move here from emacs-lisp/.
 +
 +      * files.el (lock-buffer, unlock-buffer, file-locked-p):
 +      Remove fallback aliases, since they are always defined now.
  
 -2014-03-21  Daniel Colascione  <dancol@dancol.org>
 +2014-03-24  Daniel Colascione  <dancol@dancol.org>
  
 -      * mail/emacsbug.el (report-emacs-bug): Include memory usage
 -      information in bug reports.
 +      * emacs-lisp/cl-macs.el (cl--do-arglist): Use `plist-member'
 +      instead of cl-loop search function.
 +
 +2014-03-23  Lars Ingebrigtsen  <larsi@gnus.org>
 +
 +      * calendar/parse-time.el (parse-time-iso8601-regexp)
 +      (parse-iso8601-time-string): Copied from `url-dav' so that we can use
 +      it more generally.
 +
 +2014-03-23  Lars Ingebrigtsen  <larsi@gnus.org>
 +
 +      * net/dns.el (network-interface-list): Define for XEmacs.
 +
 +2014-03-23  Magnus Henoch  <magnus.henoch@gmail.com>
 +
 +      * net/dns.el (dns-servers-up-to-date-p): New function to see whether
 +      the network interfaces changed.
 +      (dns-query): Use it to flush the data.
 +
 +2014-03-23  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * vc/vc.el (vc-rollback): Use set-buffer-modified-p.
 +
 +2014-03-23  Daniel Colascione  <dancol@dancol.org>
 +
 +      Change subword-mode to use `find-word-boundary-function-table' and
 +      replace `capitalized-words-mode'.  Also, convert to lexical
 +      binding.
 +
 +      * progmodes/cap-words.el: Delete now-obsolete file.
 +      * progmodes/subword.el: Reimplement using
 +      `find-word-boundary-function-table'.
 +      (subword-mode-map): Hollow out.
 +      (capitalized-words-mode): Define as obsolete alias for
 +      `subword-mode'.
 +      (subword-mode,superword-mode): Tweak documentation to reflect new
 +      implementation; call `subword-setup-buffer'.
 +      (subword-forward,subword-capitalize): Add underscore to indicate
 +      unused variable.
 +      (subword-find-word-boundary-function-table): New constant.
 +      (subword-empty-char-table): New constant.
 +      (subword-setup-buffer): New function.
 +      (subword-find-word-boundary): New function.
  
  2014-03-23  Daniel Colascione  <dancol@dancol.org>
  
Simple merge
diff --cc lisp/simple.el
Simple merge
diff --cc src/ChangeLog
 -2014-03-24  Barry O'Reilly  <gundaetiapo@gmail.com>
+ 2014-03-26  Paul Eggert  <eggert@cs.ucla.edu>
+       Fix core dump in char-equal (Bug#17011).
+       * editfns.c (Fchar_equal): Do not use MAKE_CHAR_MULTIBYTE in
+       unibyte buffers, as we can't tell whether the characters are
+       actually unibyte.
+       * insdel.c (adjust_markers_for_delete): Remove unused local.
 -2014-03-24  Martin Rudalics  <rudalics@gmx.at>
++2014-03-26  Barry O'Reilly  <gundaetiapo@gmail.com>
+       Have (MARKER . ADJUSTMENT) undo records always be immediately
+       after their corresponding (TEXT . POS) record in undo list.
+       (Bug#16818)
+       * lisp.h (record-delete): New arg record_markers.
+       (record_marker_adjustment): No longer needed outside undo.c.
+       * insdel.c (adjust_markers_for_delete): Move calculation of marker
+       adjustments to undo.c's record_marker_adjustments.  Note that
+       fileio.c's decide_coding_unwind is another caller to
+       adjust_markers_for_delete.  Because it has undo list bound to t,
+       it does not rely on adjust_markers_for_delete to record marker
+       adjustments.
+       (del_range_2): Swap call to record_delete and
+       adjust_markers_for_delete so as undo marker adjustments are
+       recorded before current deletion's adjustments, as before.
+       (adjust_after_replace):
+       (replace_range): Pass value for new record_markers arg to
+       delete_record.
+       * undo.c (record_marker_adjustment): Renamed to
+       record_marker_adjustments and made static.
+       (record_delete): Check record_markers arg and call
+       record_marker_adjustments.
+       (record_change): Pass value for new record_markers arg to
+       delete_record.
+       (record_point): at_boundary calculation no longer needs to account
+       for marker adjustments.
 -2014-03-23  Glenn Morris  <rgm@gnu.org>
++2014-03-26  Martin Rudalics  <rudalics@gmx.at>
+       * w32term.c (x_set_window_size): Refine fix from 2014-03-14
+       (Bug#17077).
 -2014-03-23  Stefan Monnier  <monnier@iro.umontreal.ca>
++2014-03-26  Glenn Morris  <rgm@gnu.org>
+       * fileio.c (Ffile_symlink_p): Doc fix. (Bug#17073)
 -2014-03-23  Eli Zaretskii  <eliz@gnu.org>
++2014-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * buffer.c (struct sortvec): Add field `spriority'.
+       (compare_overlays): Use it.
+       (sort_overlays): Set it.
 -2014-03-22  Daniel Colascione  <dancol@dancol.org>
++2014-03-26  Eli Zaretskii  <eliz@gnu.org>
+       * xdisp.c (redisplay_window): If all previous attempts to find the
+       cursor row failed, try a few alternatives before falling back to
+       the top-most row of the window.  Use row_containing_pos.  (Bug#17047)
 +2014-03-26  Juanma Barranquero  <lekktu@gmail.com>
  
 -      * process.c (conv_sockaddr_to_lisp): When extracting the string
 -      names of AF_LOCAL sockets, stop before reading uninitialized
 -      memory.
 +      * image.c (x_bitmap_height, x_bitmap_width) [HAVE_X_WINDOWS]:
 +      * sysdep.c (reset_sigio) [!DOS_NT]: Declare conditionally.
 +
 +      * keyboard.c (read_decoded_event_from_main_queue): #ifdef out
 +      variables on Windows.
 +
 +      * w32fns.c (Ffile_system_info): Use parenthesis in and/or expression.
 +
 +      * w32.c (unsetenv): Remove unused var `retval'.
 +      (emacs_gnutls_pull): Remove unused vars `fdset' and `timeout'.
 +
 +      * w32notify.c (watch_worker): Remove unnecesary var sleep_result.
 +      (start_watching): Remove unused var `thr'.
 +
 +      * w32proc.c (sys_spawnve): Comment out unused vars `first', `last'.
 +      (find_child_console): Remove unnecesary var `thread_id'.
 +
 +      * w32term.c (w32_read_socket): Comment out unused vars `row', `columns'.
 +      (x_focus_frame): #ifdef 0 unused variable `dpyinfo'.
 +
 +2014-03-26  Glenn Morris  <rgm@gnu.org>
 +
 +      * filelock.c (Flock_buffer): Doc tweak.
 +
 +      * buffer.c (Frestore_buffer_modified_p, Fkill_buffer):
 +      * emacs.c (shut_down_emacs):
 +      * fileio.c (Finsert_file_contents, write_region):
 +      * filelock.c (top-level, syms_of_filelock):
 +      * insdel.c (prepare_to_modify_buffer_1):
 +      CLASH_DETECTION is always defined now.
 +
 +2014-03-25  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * w32.c (w32_delayed_load): Call DisableThreadLibraryCalls on the
 +      DLL handle, to speed up thread startup.
 +
 +2014-03-25  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      Handle sigmask better with nested signal handlers  (Bug#15561).
 +      * atimer.c (sigmask_atimers): Remove.
 +      Remaining use rewritten to use body of this function.
 +      * atimer.c (block_atimers, unblock_atimers):
 +      * callproc.c (block_child_signal, unblock_child_signal):
 +      * sysdep.c (block_tty_out_signal, unblock_tty_out_signal):
 +      New arg OLDSET.  All callers changed.
 +      * atimer.c (block_atimers, unblock_atimers):
 +      * callproc.c (block_child_signal, unblock_child_signal):
 +      * keyboard.c (handle_interrupt):
 +      * sound.c (vox_configure, vox_close):
 +      Restore the old signal mask rather than unilaterally clearing bits
 +      from the mask, in case a handler is running within another
 +      handler.  All callers changed.
 +      * lisp.h, process.c, process.h, term.c:
 +      Adjust decls and callers to match new API.
 +      * sysdep.c (emacs_sigaction_init): Don't worry about masking SIGFPE;
 +      signal handlers aren't supposed to use floating point anyway.
 +      (handle_arith_signal): Unblock just SIGFPE rather than clearing mask.
 +
 +2014-03-23  Daniel Colascione  <dancol@dancol.org>
 +
 +      Split gc_sweep into discrete functions for legibility and better
 +      stack traces.
 +
 +      * alloc.c (sweep_strings,sweep_vectors): Add NO_INLINE
 +      (sweep_vectors): Fix typo in comment.
 +      (sweep_conses,sweep_floats,sweep_intervals)
 +      (sweep_symbols,sweep_misc,sweep_buffers): New functions.
 +      (gc_sweep): Call new functions, to which existing functionality is
 +      moved.
 +      * fns.c (sweep_weak_hash_tables): Add NO_INLINE.
 +
 +2014-03-23  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * w32fns.c (Fw32_shell_execute): Declare `result' only on Cygwin.
 +
 +2014-03-23  Daniel Colascione  <dancol@dancol.org>
 +
 +      * xfns.c (create_frame_xic): Pass XNStatusAttributes to XCreateIC
 +      only if xic_style calls for it.  This change allows Emacs to work
 +      with ibus.  Also, don't leak resources if create_frame_xic fails,
 +      and stop caching xic_style across different displays.
 +      (supported_xim_styles): Make const.
 +      (best_xim_style): Remove first parameter: it's always just
 +      supported_xim_styles.  Change to look at supported_xim_styles
 +      directly.
 +
 +2014-03-23  Daniel Colascione  <dancol@dancol.org>
 +
 +      * term.c (init_tty): Rearrange condition for clarity; print
 +      appropriate diagnostic.
  
  2014-03-23  Daniel Colascione  <dancol@dancol.org>
  
diff --cc src/buffer.c
Simple merge
diff --cc src/fileio.c
Simple merge
diff --cc src/insdel.c
Simple merge
diff --cc src/lisp.h
Simple merge
diff --cc src/w32term.c
Simple merge
diff --cc test/ChangeLog
@@@ -1,3 -1,16 +1,11 @@@
 -2014-03-24  Barry O'Reilly  <gundaetiapo@gmail.com>
++2014-03-26  Barry O'Reilly  <gundaetiapo@gmail.com>
+       * automated/undo-tests.el (undo-test-marker-adjustment-nominal):
+       (undo-test-region-t-marker): New tests of marker adjustments.
+       (undo-test-marker-adjustment-moved):
+       (undo-test-region-mark-adjustment): New tests to demonstrate
+       bug#16818, which fail without the fix.
 -2014-03-23  Daniel Colascione  <dancol@dancol.org>
 -
 -      * automated/cl-lib.el (cl-lib-keyword-names-versus-values): New
 -      test: correct parsing of keyword arguments.
 -
  2014-03-23  Dmitry Gutov  <dgutov@yandex.ru>
  
        * automated/package-test.el (package-test-describe-package):