Merge from emacs-24; up to 2012-11-26T19:56:14Z!monnier@iro.umontreal.ca
authorGlenn Morris <rgm@gnu.org>
Mon, 10 Dec 2012 02:00:42 +0000 (18:00 -0800)
committerGlenn Morris <rgm@gnu.org>
Mon, 10 Dec 2012 02:00:42 +0000 (18:00 -0800)
18 files changed:
1  2 
doc/emacs/ChangeLog
doc/lispref/ChangeLog
doc/lispref/customize.texi
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/cl-lib.el
lisp/emacs-lisp/cl.el
lisp/mail/rmail.el
lisp/simple.el
lisp/textmodes/texinfo.el
lisp/vc/vc-hooks.el
src/ChangeLog
src/editfns.c
src/indent.c
src/lread.c
src/nsterm.m
src/w32.c
src/w32fns.c

@@@ -1,9 -1,8 +1,13 @@@
 -2012-12-08  Dani Moncayo  <dmoncayo@gmail.com>
++2012-12-10  Dani Moncayo  <dmoncayo@gmail.com>
+       * killing.texi (Deletion): Doc fix (Bug#12748).
 -2012-12-03  Juanma Barranquero  <lekktu@gmail.com>
 +2012-12-06  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * doclicense.texi, gpl.texi: Update to latest version from FSF.
 +      These are just minor editorial changes.
 +
 +2012-12-06  Juanma Barranquero  <lekktu@gmail.com>
  
        * vc1-xtra.texi (General VC Options): Remove obsolete reference
        to `vc-path'.
@@@ -1,14 -1,13 +1,21 @@@
 -2012-12-09  Stefan Monnier  <monnier@iro.umontreal.ca>
++2012-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * control.texi (Pattern maching case statement): New node.
 -2012-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 -
+       * customize.texi (Variable Definitions): Mention the default :group
+       for defcustoms (bug#13093).
 -2012-12-05  Chong Yidong  <cyd@gnu.org>
 +2012-12-09  Glenn Morris  <rgm@gnu.org>
 +
 +      * customize.texi (Variable Definitions): Mention eval-defun
 +      on a defcustom calls the :set function when appropriate.
 +
 +2012-12-06  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * doclicense.texi, gpl.texi: Update to latest version from FSF.
 +      These are just minor editorial changes.
 +
 +2012-12-06  Chong Yidong  <cyd@gnu.org>
  
        * lists.texi (Plist Access): Move put example to Symbol Plists.
  
        (Window History): Minor rewording.
        (Dedicated Windows): Correct and reword part describing how
        dedicatedness affects functions removing buffers or windows.
-       * buffers.texi (The Buffer List): Fix description of
-       bury-buffer.
+       * buffers.texi (The Buffer List): Fix description of bury-buffer.
  
 -2012-11-23  Chong Yidong  <cyd@gnu.org>
 +2012-11-24  Chong Yidong  <cyd@gnu.org>
  
        * modes.texi (%-Constructs): Fix statement about mode construct
        padding (Bug#12866).
  
        * windows.texi (Choosing Window): Rewrite description of
        display-buffer-alist (Bug#12167).
-       (Display Action Functions): Mention inhibit-switch-frame.  Fix
-       description of display-buffer-below-selected.  Reorder actions.
+       (Display Action Functions): Mention inhibit-switch-frame.
+       Fix description of display-buffer-below-selected.  Reorder actions.
        Add example (Bug#12848).
  
 -2012-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
 -
 -      * keymaps.texi (Translation Keymaps): Add a subsection "Interaction
 -      with normal keymaps" (bug#12868).
 -
 -2012-11-15  Glenn Morris  <rgm@gnu.org>
 +2012-11-16  Glenn Morris  <rgm@gnu.org>
  
        * display.texi (Face Attributes): Fix :underline COLOR description.
        (Attribute Functions): Update for set-face-underline rename.
Simple merge
diff --cc etc/NEWS
Simple merge
diff --cc lisp/ChangeLog
 -2012-12-09  Chong Yidong  <cyd@gnu.org>
 -
 -      * simple.el (set-mark-default-inactive): Mark as obsolete, for
 -      removal after 24.3.
 -
 -2012-12-08  Dani Moncayo <dmoncayo@gmail.com>
++2012-12-10  Dani Moncayo <dmoncayo@gmail.com>
+       * simple.el (just-one-space): Doc fix.
 -2012-12-07  Eli Zaretskii  <eliz@gnu.org>
++2012-12-10  Eli Zaretskii  <eliz@gnu.org>
+       * textmodes/texinfo.el (texinfo-enable-quote-envs): Add
+       "smallexample".
 -2012-12-07  Le Wang  <l26wang@gmail.com>
++2012-12-10  Le Wang  <l26wang@gmail.com>
+       * hilit-chg.el (hilit-chg-set-face-on-change): Don't burp in
+       narrowed buffer (bug#12361).
 -2012-12-07  Michael Heerdegen  <michael_heerdegen@web.de>
 -
 -      * emacs-lisp/debug.el (debug): Fix hard-coded frame counts (bug#10025).
 -      Virtually backported from trunk.
 -
 -2012-12-07  Juanma Barranquero  <lekktu@gmail.com>
++2012-12-10  Juanma Barranquero  <lekktu@gmail.com>
+       * vc/vc-hooks.el (vc-state): Doc fix.
 -2012-12-06  Glenn Morris  <rgm@gnu.org>
++2012-12-10  Glenn Morris  <rgm@gnu.org>
+       * mail/rmail.el (rmail-maybe-display-summary):
+       Preserve buffer, in case select-window changes it.  (Bug#13066)
 -2012-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
++2012-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * emacs-lisp/cl.el, emacs-lisp/cl-lib.el: Move cl-unload-function and
+       cl-load-hook where they belong.
 +2012-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * emacs-lisp/cl-lib.el (cl-declaim): Paren typo.
 +
 +2012-12-09  Eli Zaretskii  <eliz@gnu.org>
 +
 +      Parallelize byte compilation on MS-Windows.
 +      * makefile.w32-in (WINS_BASIC1, WINS_BASIC2, WINS_BASIC3)
 +      (WINS_BASIC4): New variables, subdivide subdirectories into 4 parts.
 +      (WINS_BASIC): Define as concatenation of the above.
 +      (compile): Subdivide into 4 separate and independent jobs that can
 +      be run in parallel.
 +      (compile0-CMD, compile0-SH): New targets for compiling
 +      COMPILE_FIRST files, which are prerequisites for the rest of the
 +      byte-compilation.
 +      (compile1-CMD, compile2-CMD, compile3-CMD, compile4-CMD):
 +      New targets for parallel compilation with cmd.exe.
 +      (compile1-SH, compile2-SH, compile3-SH, compile4-SH): Ditto for
 +      compiling under a Unixy shell.
 +
 +2012-12-09  Chong Yidong  <cyd@gnu.org>
 +
 +      * simple.el (set-mark-default-inactive): Delete this
 +      accidentally-introduced option.
 +      (set-mark-command, exchange-point-and-mark): Remove calls.
 +
 +2012-12-09  Glenn Morris  <rgm@gnu.org>
 +
 +      * emacs-lisp/lisp-mode.el (eval-defun-1): Doc fix.
 +      Respect a defcustom's :set function, if appropriate.  (Bug#109)
 +      (eval-defun): Doc fix.
 +
 +2012-12-08  Juri Linkov  <juri@jurta.org>
 +
 +      * info.el (Info-copy-current-node-name, Info-breadcrumbs)
 +      (Info-fontify-node, Info-bookmark-make-record): Remove the
 +      file extension from Info-current-file (Bug#13016).
 +
 +2012-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * hi-lock.el (hi-lock-unface-buffer): If there's no matching regexp at
 +      point, still provide some default.
 +      (hi-lock--regexps-at-point): Don't enforce a "hi-lock-" prefix on face
 +      names, since we don't use it right now.  Actually return the list.
 +      (hi-lock-file-patterns, hi-lock-interactive-patterns): Use defvar-local.
 +
 +2012-12-07  Chong Yidong  <cyd@gnu.org>
 +
 +      * novice.el (disabled-command-function): Remove a spurious help
 +      xref (Bug#13043).  Suggested by Kelly Dean.
 +
 +      * subr.el (text-clone-maintain): Fix clone overlay deletion when a
 +      syntax is specified (Bug#13025).
 +
 +      * info.el (Info-set-mode-line): Remove the file extension from
 +      Info-current-file if there is one (Bug#13016).
 +
 +2012-12-07  Glenn Morris  <rgm@gnu.org>
 +
 +      * mail/rmail.el (rmail-mime-decoded): New permanent local.
 +      (rmail-show-message-1): Set rmail-mime-decoded when appropriate.
 +      * mail/rmailedit.el (rmail-cease-edit): Respect rmail-mbox-format
 +      and rmail-mime-decoded.  (Bug#9841)
 +
 +      * mail/unrmail.el (unrmail-mbox-format): New option.  (Bug#6574)
 +      (batch-unrmail, unrmail): Doc fixes.
 +      (unrmail): Respect unrmail-mbox-format.
 +      * mail/rmail.el (rmail-mbox-format): New option.
 +      (rmail-show-message-1): Respect rmail-mbox-format.
 +
 +2012-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * emacs-lisp/cl-macs.el (cl-tagbody): New macro.
 +
 +2012-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      Further cleanup of the "cl-" namespace.  Fit CL in 80 columns.
 +      * emacs-lisp/cl-macs.el (cl--pop2, cl--optimize-safety)
 +      (cl--optimize-speed, cl--not-toplevel, cl--parse-loop-clause)
 +      (cl--expand-do-loop, cl--proclaim-history, cl--declare-stack)
 +      (cl--do-proclaim, cl--proclaims-deferred): Rename from the "cl-" prefix.
 +      (cl-progv): Don't rely on dynamic scoping to find the body.
 +      * emacs-lisp/cl-lib.el (cl--optimize-speed, cl--optimize-safety)
 +      (cl--proclaims-deferred): Rename from the "cl-" prefix.
 +      (cl-declaim): Use backquotes.
 +      * emacs-lisp/cl-extra.el (cl-make-random-state, cl-random-state-p):
 +      Use "cl--" prefix for the object's tag.
 +
 +      * ses.el: Use advice-add/remove.
 +      (ses--advice-copy-region-as-kill, ses--advice-yank): New functions.
 +      (copy-region-as-kill, yank): Use advice-add.
 +      (ses-unload-function): Use advice-remove.
 +
 +2012-12-06  Jonas Bernoulli  <jonas@bernoul.li>
 +
 +      * button.el: Make them work in header-lines (bug#12817).
 +      (button-map): Add bindings for header-line and mode-line use.
 +      (button-get, button-put, button-label): `button' may now be a string.
 +      (button-activate): Don't make it a defsubst.
 +      (button--area-button-p, button--area-button-string): New functions.
 +      (make-text-button): Fix the return value when `beg' was a string.
 +      (push-button): Handle the mode-line case.
 +
 +2012-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup.
 +      (sql-signum): Remove.  Use `cl-signum' instead.
 +      (sql-read-passwd): Remove; use read-passwd instread.
 +      (sql-get-login-ext): Use read-string.
 +      (sql-get-login): Use dolist and pcase.
 +      (sql--completion-table): Rename from sql-try-completion.
 +      Use complete-with-action.
 +      (sql-mode): Don't change abbrev-all-caps globally.
 +      (sql-connect): Don't rely on dynamic scoping for `new-name'.
 +      (sql-postgres-completion-object): Initialize vars in their `let'.
 +      (sql-comint-sybase, sql-comint-sqlite, sql-comint-mysql)
 +      (sql-comint-solid, sql-comint-ms, sql-comint-postgres)
 +      (sql-comint-interbase): Use a single append, without setq.
 +      (sql-comint-linter): Same, and unwind-protect the LINTER_MBX var.
 +
 +      * hi-lock.el: Rework the default face and the serialize regexp code.
 +      (hi-lock--auto-select-face-defaults): Remove.
 +      (hi-lock-string-serialize-serial): Remove.
 +      (hi-lock--hashcons-hash): Rename from hi-lock-string-serialize-hash;
 +      make weak.
 +      (hi-lock--hashcons): Rename from hi-lock-string-serialize, return an
 +      equal string.
 +      (hi-lock-set-pattern): Adjust accordingly.
 +      (hi-lock--regexps-at-point): Simplify accordingly.
 +      (hi-lock--auto-select-face-defaults): Remove.
 +      (hi-lock--last-face): New var to replace it.
 +      (hi-lock-read-face-name): Rewrite (bug#11095).
 +      (hi-lock-unface-buffer): Arrange for the face to be the next default.
 +
 +2012-12-06  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp.el (tramp-replace-environment-variables):
 +      Hide compiler warning.
 +      (tramp-file-name-for-operation): Remove `executable-find',
 +      `start-process', `call-process' and `call-process-region'.
 +
 +      * net/tramp-compat.el (top): Don't require 'tramp-util and 'tramp-vc.
 +
 +      * net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Ensure backward
 +      compatibility.
 +
 +      * net/tramp-sh.el (top): Remove `tramp-sh-handle-call-process-region'.
 +
  2012-12-06  Chong Yidong  <cyd@gnu.org>
  
        * ffap.el (ffap-replace-file-component): Fix typo.
Simple merge
Simple merge
Simple merge
diff --cc lisp/simple.el
Simple merge
Simple merge
Simple merge
diff --cc src/ChangeLog
 -2012-12-08  Jan Djärv  <jan.h.d@swipnet.se>
++2012-12-10  Jan Djärv  <jan.h.d@swipnet.se>
+       * nsterm.m (fd_handler:): FD_ZERO fds (Bug#13103).
 -2012-12-08  Fabrice Popineau  <fabrice.popineau@gmail.com>
++2012-12-10  Fabrice Popineau  <fabrice.popineau@gmail.com>
+       * w32fns.c (cache_system_info): Cast sysinfo_cache.dwPageSize to
+       DWORD_PTR, for compatibility with 64-bit builds.
+       * w32.c (_PROCESS_MEMORY_COUNTERS_EX):
+       (GetProcessWorkingSetSize_Proc, get_process_working_set_size)
+       (system_process_attributes): Use SIZE_T rather than DWORD, for
+       compatibility with 64-bit builds.
 -2012-12-08  Christopher Schmidt  <christopher@ch.ristopher.com>
++2012-12-10  Christopher Schmidt  <christopher@ch.ristopher.com>
+       * lread.c (Vload_source_file_function): Doc fix (Bug#11647).
 -2012-12-07  Eli Zaretskii  <eliz@gnu.org>
++2012-12-10  Eli Zaretskii  <eliz@gnu.org>
+       * indent.c (Fvertical_motion): If a display string will be
+       displayed on the left or the right margin, don't consider it as a
+       factor in cursor positioning.  (Bug#13108)
 -2012-12-07  Martin Rudalics  <rudalics@gmx.at>
++2012-12-10  Martin Rudalics  <rudalics@gmx.at>
+       * editfns.c (Fcompare_buffer_substrings): Reword doc-string.
 -2012-12-05  Eli Zaretskii  <eliz@gnu.org>
 +2012-12-10  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int,
 +      for string length.
 +
 +2012-12-08  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * w32.c (unsetenv): Return 0 if the input string is too long.
 +
 +2012-12-08  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      Use putenv+unsetenv instead of modifying environ directly (Bug#13070).
 +      * alloc.c (xputenv): New function.
 +      * dbusbind.c (Fdbus_init_bus):
 +      * emacs.c (main):
 +      * xterm.c (x_term_init):
 +      Use xputenv instead of setenv or putenv, to detect memory exhaustion.
 +      * editfns.c (initial_tz): Move static var decl up.
 +      (tzvalbuf_in_environ): New static var.
 +      (init_editfns): Initialize these two static vars.
 +      (Fencode_time): Don't assume arbitrary limit on EMACS_INT width.
 +      Save old TZ value on stack, if it's small.
 +      (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly;
 +      instead, use xputenv+unsetenv to set and restore TZ.
 +      (environbuf): Remove static var.  All uses removed.
 +      (Fset_time_zone_rule): Do not save TZ and environ;
 +      no longer needed here.
 +      (set_time_zone_rule_tz1, set_time_zone_rule_tz2) [LOCALTIME_CACHE]:
 +      Move to inside set_time_zone_rule; they don't need file scope any more.
 +      (set_time_zone_rule): Maintain the TZ=value string separately.
 +      (syms_of_editfns): Don't initialize initial_tz;
 +      init_editfns now does it.
 +      * emacs.c (dump_tz) [HAVE_TZSET]: Now const.
 +      * lisp.h (xputenv): New decl.
 +
 +2012-12-08  Fabrice Popineau  <fabrice.popineau@gmail.com>
 +
 +      * w32fns.c (emacs_abort): Don't do arithmetics on void pointers.
 +
 +2012-12-08  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * w32.c (unsetenv, sys_putenv): New functions.
 +
 +2012-12-08  Chong Yidong  <cyd@gnu.org>
 +
 +      * editfns.c (Finsert_char): Make the error message more
 +      informative (Bug#12992).
 +
 +2012-12-08  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      Simplify get_lim_data.
 +      * vm-limit.c (get_lim_data): Combine RLIMIT_AS and RLIMIT_DATA methods.
 +      Remove USG and vlimit methods; no longer used these days.
 +      Add #error catchall just in case.
 +
 +      Assume POSIX 1003.1-1988 or later for signal.h (Bug#13026).
 +      Exceptions: do not assume SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN,
 +      SIGTTOU, SIGUSR1, SIGUSR2, as Microsoft platforms lack these.
 +      * process.c [subprocesses]: Include <c-ctype.h>, <sig2str.h>.
 +      (deleted_pid_list, Fdelete_process, create_process)
 +      (record_child_status_change, handle_child_signal, deliver_child_signal)
 +      (init_process_emacs, syms_of_process):
 +      Assume SIGCHLD is defined.
 +      (parse_signal): Remove.  All uses removed.
 +      (abbr_to_signal): New static function.
 +      (Fsignal_process): Use it to convert signal names to ints.
 +      * sysdep.c (sys_suspend) [!DOS_NT]: Use kill (0, ...) rather than
 +      kill (getpgrp (), ...).
 +      (emacs_sigaction_init): Assume SIGCHLD is defined.
 +      (init_signals): Assume SIGALRM, SIGCHLD, SIGHUP, SIGKILL,
 +      SIGPIPE, and SIGQUIT are defined.  Do not worry about SIGCLD any more.
 +      * syssignal.h (EMACS_KILLPG): Remove.
 +      All uses replaced by 'kill' with a negative pid.
 +      (SIGCHLD): Remove definition, as we now assume SIGCHLD.
 +      * w32proc.c (sys_kill): Support negative pids compatibly with POSIX.
 +
 +2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * sysdep.c (get_child_status): Abort on internal error (Bug#13086).
 +      This will cause a production Emacs to dump core instead of
 +      infinite-looping.
 +
 +2012-12-07  Dmitry Antipov  <dmantipov@yandex.ru>
 +
 +      * frame.c (make_frame): Do not set window's buffer to t.
 +      * window.c (Fsplit_window_internal): Likewise.  Previously it was
 +      used to indicate that the window is being set up.  Now we use
 +      set_window_buffer for all new windows, so the condition in ...
 +      (Fset_window_buffer): ... is always true and can be removed.
 +
 +2012-12-07  Dmitry Antipov  <dmantipov@yandex.ru>
 +
 +      Convenient macro to check whether the buffer is hidden.
 +      * buffer.h (BUFFER_HIDDEN_P): New macro.
 +      * frame.c (make_frame): Use it.  Adjust comment.
 +      * buffer.c (candidate_buffer): New function.
 +      (Fother_buffer, other_buffer_safely): Use it.
 +
 +2012-12-06  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * w32proc.c (waitpid): Avoid busy-waiting when called with WNOHANG
 +      if the child process is still running.  Instead, exit the wait
 +      loop and return zero.  (Bug#13086)
 +
 +2012-12-06  Dmitry Antipov  <dmantipov@yandex.ru>
 +
 +      * frame.h (x_char_width, x_char_height): Remove prototypes.
 +      * w32term.h (x_char_width, x_char_height): Likewise.
 +      * xfns.c (x_char_width, x_char_height): Remove.
 +      * w32fns.c (x_char_width, x_char_height): Likewise.
 +      * nsfns.c (x_char_width, x_char_height): Likewise.
 +      * frame.c (Fframe_char_width): Use FRAME_COLUMN_WIDTH for
 +      all window frames.
 +      (Fframe_char_height): Likewise with FRAME_LINE_HEIGHT.
 +      * keyboard.c (command_loop_1): Remove prototype.
 +      (command_loop_2, top_level_1): Add static to match prototype.
 +
 +2012-12-06  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      Fix a recently-introduced delete-process race condition.
 +      * callproc.c, process.h (record_kill_process):
 +      New function, containing part of the old call_process_kill.
 +      (call_process_kill): Use it.
 +      This does not change call_process_kill's behavior.
 +      * process.c (Fdelete_process): Use record_kill_process to fix a
 +      race condition that could cause Emacs to lose track of a child.
 +
 +2012-12-06  Dmitry Antipov  <dmantipov@yandex.ru>
 +
 +      Avoid code duplication between prev_frame and next_frame.
 +      * frame.c (candidate_frame): New function.  Add comment.
 +      (prev_frame, next_frame): Use it.  Adjust comment.
 +
 +2012-12-06  Eli Zaretskii  <eliz@gnu.org>
  
        * callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp
        fails, signal an error instead of continuing with an empty
diff --cc src/editfns.c
Simple merge
diff --cc src/indent.c
Simple merge
diff --cc src/lread.c
Simple merge
diff --cc src/nsterm.m
@@@ -4575,11 -4566,14 +4575,11 @@@ not_in_argv (NSString *arg
        if (waiting)
          {
            SELECT_TYPE fds;
+           FD_ZERO (&fds);
            FD_SET (selfds[0], &fds);
            result = select (selfds[0]+1, &fds, NULL, NULL, NULL);
 -          if (result > 0)
 -            {
 -              read (selfds[0], &c, 1);
 -              if (c == 'g') waiting = 0;
 -            }
 +          if (result > 0 && read (selfds[0], &c, 1) == 1 && c == 'g')
 +          waiting = 0;
          }
        else
          {
diff --cc src/w32.c
Simple merge
diff --cc src/w32fns.c
Simple merge