]> code.delx.au - gnu-emacs/commitdiff
Merge from emacs-24; up to 2014-07-04T02:28:54Z!dmantipov@yandex.ru
authorGlenn Morris <rgm@gnu.org>
Wed, 3 Sep 2014 04:21:40 +0000 (21:21 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 3 Sep 2014 04:21:40 +0000 (21:21 -0700)
13 files changed:
1  2 
lisp/ChangeLog
lisp/emacs-lisp/package.el
lisp/progmodes/gud.el
lisp/progmodes/python.el
lisp/startup.el
lisp/subr.el
src/ChangeLog
src/conf_post.h
src/dispnew.c
src/eval.c
src/xdisp.c
test/ChangeLog
test/indent/scheme.scm

diff --cc lisp/ChangeLog
index 3edfdad0cf037736588b9f14b93c35095aafd627,1e130d05cf61648002efc620f872b50b7ccb37d5..29fec987a2e265d3182ca0758d26e4f9990af4ae
 -2014-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>
++2014-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * emacs-lisp/package.el (package-generate-description-file):
+       Properly quote the arguments (bug#18332).  Change second arg.
+       (package--alist-to-plist-args): Rename from package--alist-to-plist and
+       quote the elements.
+       (package--make-autoloads-and-stuff): Fix the test for pre-existence of
+       the *-pkg.el file.  Adjust to new calling convention of
+       package-generate-description-file.
+       * progmodes/gud.el (gud-gdb-completion-at-point): Add hack (bug#18282).
+       (gud-gdb-completions): Remove obsolete workaround.
 -2014-09-02  Eli Zaretskii  <eliz@gnu.org>
++2014-09-03  Eli Zaretskii  <eliz@gnu.org>
+       * subr.el (posn-col-row): Revert the change from commit
+       2010-11-13T21:07:58Z!eliz@gnu.org, which
+       was inadvertently merged from emacs-23 release branch in 2010-11-18T03:54:14Z!monnier@iro.umontreal.ca
+       monnier@iro.umontreal.ca-20101118035414-yvlg7k7dk4k4l3q, and
+       introduced an off-by-one error in the reported row when there is a
+       header line.  (Bug#18384)
 -2014-09-01  Fabián Ezequiel Gallina  <fgallina@gnu.org>
++2014-09-03  Fabián Ezequiel Gallina  <fgallina@gnu.org>
+       * progmodes/python.el (python-indent-post-self-insert-function):
+       Avoid electric colon at beginning-of-defun.  (Bug#18228)
 -2014-09-01  Glenn Morris  <rgm@gnu.org>
++2014-09-03  Glenn Morris  <rgm@gnu.org>
+       * tutorial.el (tutorial--display-changes):
 -      Fix 2014-07-29 change.  (Bug#18382)
++      Fix 2014-08-01 change.  (Bug#18382)
 -2014-08-29  Ken Brown  <kbrown@cornell.edu>
++2014-09-03  Ken Brown  <kbrown@cornell.edu>
+       * startup.el (fancy-splash-frame): Extend the fix for Bug#16014 to
+       the Cygwin-w32 build.  (Bug#18347)
 -2014-08-28  Glenn Morris  <rgm@gnu.org>
++2014-09-03  Glenn Morris  <rgm@gnu.org>
+       * tar-mode.el (tar--extract, tar-extract):
+       Avoid permanently disabling undo in extracted buffers.  (Bug#18344)
 -2014-08-27  Michael Albinus  <michael.albinus@gmx.de>
 +2014-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * progmodes/sh-script.el (sh-font-lock-quoted-subshell): Try to better
 +      handle multiline elements (bug#18380).
 +
 +2014-09-01  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * ls-lisp.el (ls-lisp-use-string-collate)
 +      (ls-lisp-UCA-like-collation): New defcustoms.
 +      (ls-lisp-string-lessp): Use them to control sorting by file
 +      names.  (Bug#18051)
 +      (ls-lisp-version-lessp): New function.
 +      (ls-lisp-handle-switches): Use it to implement the -v switch of
 +      GNU ls.
 +      (ls-lisp--insert-directory): Mention the -v switch in the doc string.
 +
 +2014-08-31  Christoph Scholtes  <cschol2112@gmail.com>
 +
 +      * ibuffer.el: Replace mode-specific quit function with
 +      `quit-window' via `special-mode'.
 +      (ibuffer-mode-map): Use keybindings from special-mode-map instead
 +      of local overrides.
 +      (ibuffer): Don't store previous windows configuration.
 +      Let `quit-window' handle restoring.
 +      (ibuffer-quit): Remove function. Use `quit-window' instead.
 +      (ibuffer-restore-window-config-on-quit): Remove variable.
 +      (ibuffer-prev-window-config): Remove variable.
 +
 +2014-08-29  Michael Heerdegen  <michael_heerdegen@web.de>
 +
 +      * emacs-lisp/easy-mmode.el (define-minor-mode): Use mode function
 +      name instead of variable name in hook docstring.  (Bug#18349)
 +
 +2014-08-29  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * window.el (display-buffer-at-bottom): Prefer bottom-left
 +      window to other bottom windows.  Reuse a bottom window if it
 +      shows the buffer already.  Suggested by Juri Linkov
 +      <juri@jurta.org> in discussion of (Bug#18181).
 +
 +2014-08-29  Leo Liu  <sdl.web@gmail.com>
 +
 +      * files.el (minibuffer-with-setup-hook): Allow (:append FUN) to
 +      append to minibuffer-setup-hook.  (Bug#18341)
  
 -      * emacs-lisp/authors.el (authors-aliases): Addition.
 +2014-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * progmodes/cc-defs.el: Expose c-lanf-defconst's expressions to the
 +      byte-compiler.
 +      (lookup-syntax-properties): Silence byte-compiler.
 +      (c-lang-defconst): Quote the code with `lambda' rather than with
 +      `quote'.
 +      (c-lang-const): Avoid unneeded setq.
 +      (c-lang-constants-under-evaluation): Add docstring.
 +      (c-lang--novalue): New constant.
 +      (c-find-assignment-for-mode): Use it instead of c-lang-constants.
 +      (c-get-lang-constant): Same here.
 +      Get the mode's value using `funcall' now that the code is quoted
 +      with `lambda'.
 +
 +2014-08-28  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp.el (tramp-handle-shell-command): Use `display-buffer'.
 +      (Bug#18326)
 +
 +2014-08-28  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * scroll-bar.el (scroll-bar-horizontal-drag-1): Handle new
 +      interpretation of `portion-whole'.
 +
 +2014-08-28  Michael Albinus  <michael.albinus@gmx.de>
  
        * net/tramp-adb.el: Spell author name correctly.
  
index 4d7ed8f121c001e4937d7a36cb68bbe770df16dc,329ab8e6de76b06d887e52f73d273cc800e2bd2f..1649ee0ea1a5d2a94f7f3d86f58c769c7824bca1
@@@ -733,6 -715,16 +717,15 @@@ untar into a directory named DIR; other
          "\n")
         nil pkg-file nil 'silent))))
  
 -
+ (defun package--alist-to-plist-args (alist)
+   (mapcar (lambda (x)
+             (if (and (not (consp x))
+                      (or (keywordp x)
+                          (not (symbolp x))
+                          (memq x '(nil t))))
+                 x `',x))
+           (apply #'nconc
+                  (mapcar (lambda (pair) (list (car pair) (cdr pair))) alist))))
  (defun package-unpack (pkg-desc)
    "Install the contents of the current buffer as a package."
    (let* ((name (package-desc-name pkg-desc))
Simple merge
Simple merge
diff --cc lisp/startup.el
Simple merge
diff --cc lisp/subr.el
Simple merge
diff --cc src/ChangeLog
index fbe5f597d9c83eb646100ae82bd9f8a654e7760d,5f00b654261c856b046311611c016f5703435fdf..cfafd9d8fa3f2ba67958792d02a62c9ba87ac21b
 -2014-09-02  Eli Zaretskii  <eliz@gnu.org>
++2014-09-03  Eli Zaretskii  <eliz@gnu.org>
+       * dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in
+       the reported row in the case of a window with a header line, by
+       improving on the fix committed in 2011-10-08T10:58:50Z!eliz@gnu.org
+       eliz@gnu.org-20111008105850-ht4tvsayohvr1kjc.  (Bug#18384)
 -2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
++2014-09-03  Paul Eggert  <eggert@cs.ucla.edu>
+       * eval.c (internal_lisp_condition_case): Don't overrun the stack
+       when configured --with-wide-int on typical 32-bit platforms.
 -2014-08-31  Eli Zaretskii  <eliz@gnu.org>
++2014-09-03  Eli Zaretskii  <eliz@gnu.org>
+       * xdisp.c (display_and_set_cursor): Call erase_phys_cursor also
+       when HPOS is negative, for the benefit of R2L glyph rows whose
+       newline overflows into the fringe.
 -2014-08-30  Ken Brown  <kbrown@cornell.edu>
++2014-09-03  Ken Brown  <kbrown@cornell.edu>
 -      * conf_post.h (strnicmp) [CYGWIN && HAVE_NTGUI]: Define.
 -      (Bug#18366)
++      * conf_post.h (strnicmp) [CYGWIN && HAVE_NTGUI]: Define.  (Bug#18366)
 -2014-08-28  Eli Zaretskii  <eliz@gnu.org>
 +2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
  
 -      * syntax.c (scan_lists): Don't examine positions before BEGV.
 -      (Bug#18339)
 +      Minor cleanup of recent strlen-avoiding patch.
 +      * fileio.c (CHECK_LENGTH): Remove.
 +      Rewrite callers so that they don't need it.
 +      (Fexpand_file_name) [DOS_NT]: Fix a case where directory length
 +      variable wasn't set.
 +
 +2014-09-02  Dmitry Antipov  <dmantipov@yandex.ru>
 +
 +      * fileio.c (CHECK_LENGTH): New macro.
 +      (Fexpand_file_name): Use it and get rid of a few more calls
 +      to strlen and strcat.
 +      * callproc.c (egetenv_internal): Add arg and rename from egetenv ...
 +      * lisp.h (egetenv): ... because of a new inline function used to
 +      avoid calls to strlen for a compile-time constants.
 +
 +      * buffer.h (decode_buffer): New function.
 +      * buffer.c (Fbuffer_name, Fbuffer_file_name, Fbuffer_base_buffer)
 +      (Fbuffer_local_variables, Fbuffer_modified_p, Fbuffer_modified_tick)
 +      (Fbuffer_chars_modified_tick, Fdelete_all_overlays):
 +      * data.c (Flocal_variables_p):
 +      * fileio.c (Fverify_visited_file_modtime):
 +      * marker.c (live_buffer): Use it.
 +
 +2014-09-01  Dmitry Antipov  <dmantipov@yandex.ru>
 +
 +      Avoid extra calls to strlen in filesystem I/O routines.
 +      * fileio.c (Fexpand_file_name): Avoid calls to strlen if
 +      the length of 'newdir' is known or may be precalculated.
 +      (file_accessible_directory_p): Prefer to pass Lisp_Object,
 +      not 'char *', and so use precalculated length.
 +      (Ffile_accessible_directory_p):
 +      * callproc.c (encode_current_directory, init_callproc):
 +      * charset.c (init_charset):
 +      * lread.c (load_path_check, load_path_default): Adjust users.
 +      * lisp.h (file_accessible_directory_p): Tweak prototype.
 +
 +2014-09-01  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * w32proc.c (w32_compare_strings): Support "C" and "POSIX"
 +      locales.
 +
 +2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      --enable-silent-rules now suppresses more chatter.
 +      * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
 +      (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
 +      (am__v_CCLD_1): New macros, taken from Automake.
 +      (.c.o, .m.o, temacs$(EXEEXT)): Use them.
 +
 +      Clean up extern decls a bit.
 +      * bytecode.c: Include blockinput.h and keyboard.h rather
 +      than rolling their APIs by hand.
 +      * emacs.c: Include regex.h and rely on its and lisp.h's API
 +      rather than rolling them by hand.
 +      * lastfile.c: Include lisp.h, to check this file's API.
 +      * lisp.h (lisp_eval_depth, my_edata, my_endbss, my_endbss_static):
 +      New decls.
 +      * regex.h (re_max_failures): New decl.
 +      * unexcw.c, unexmacosx.c, unexw32.c:
 +      Rely on lisp.h's API rather than rolling it by hand.
 +      * vm-limit.c (__after_morecore_hook, __morecore, real_morecore):
 +      Declare at top level, to pacify GCC -Wnested-externs.
  
 -2014-08-25  Eli Zaretskii  <eliz@gnu.org>
 +2014-08-31  Eli Zaretskii  <eliz@gnu.org>
  
 -      * conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.
 +      * xdisp.c (get_glyph_string_clip_rects): Don't let the width of a
 +      clipping rectangle become negative (i.e. large positive, since
 +      it's an unsigned data type).  This can happen in R2L hscrolled
 +      glyph rows, and caused us to draw the cursor glyph on the fringe.
 +      For the details, see
 +      http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00543.html.
 +
 +2014-08-31  Ken Brown  <kbrown@cornell.edu>
  
 -2014-08-18  Eli Zaretskii  <eliz@gnu.org>
 +      * gmalloc.c: Don't include <stdlib.h>.  Declare system malloc and
 +      friends before defining hybrid_malloc and friends if HYBRID_MALLOC
 +      is defined.  (Bug#18368)
 +
 +2014-08-30  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      Vector-sorting fixes (Bug#18361).
 +      It's not safe to call qsort or qsort_r, since they have undefined
 +      behavior if the user-specified predicate is not a total order.
 +      Also, watch out for garbage-collection while sorting vectors.
 +      * fns.c: Include <vla.h>.
 +      (sort_vector_predicate) [!HAVE_QSORT_R]: Remove.
 +      (sort_vector_compare): Remove, replacing with ....
 +      (inorder, merge_vectors, sort_vector_inplace, sort_vector_copy):
 +      ... these new functions.
 +      (sort_vector): Rewrite to use the new functions.
 +      GCPRO locals, since the predicate can invoke the GC.
 +      Since it's in-place return void; caller changed.
 +      (merge): Use 'inorder', for clarity.
 +
 +      * sysdep.c (str_collate): Clear errno just before wcscoll(_l).
 +      One can't hoist this out of the 'if', because intervening calls to
 +      newlocale, twolower, etc. can change errno.
 +
 +2014-08-30  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * sysdep.c (str_collate) [__STDC_ISO_10646__]: Improve the
 +      wording of the error messages.
 +      (str_collate) [WINDOWSNT]: Signal an error if w32_compare_strings
 +      sets errno.
 +
 +      * w32proc.c (get_lcid_callback): Accept locale specifications
 +      without the country part, as in "enu" vs "enu_USA".
 +      (w32_compare_strings): Signal an error if a locale was specified,
 +      but couldn't be translated into a valid LCID.
 +
 +2014-08-29  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * sysdep.c (str_collate) [__STDC_ISO_10646__]: Move up setting errno.
 +
 +2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * sysdep.c (str_collate) [__STDC_ISO_10646__]: Do not look at
 +      errno after towlower_l.  errno's value is not specified after
 +      towlower_l.  Instead, assume that towlower_l returns its argument
 +      on failure, which is portable in practice.
 +
 +2014-08-29  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * fns.c (Fstring_collate_lessp, Fstring_collate_equalp): Doc fix.
 +
 +      * w32proc.c (w32_compare_strings): Accept additional argument
 +      IGNORE_CASE.  Set up the flags for CompareStringW to ignore case
 +      if requested.  If w32-collate-ignore-punctuation is non-nil, add
 +      NORM_IGNORESYMBOLS to the flags.
 +      (LINGUISTIC_IGNORECASE): Define if not already defined.
 +      (syms_of_ntproc) <Vw32_collate_ignore_punctuation>: New variable.
 +
 +      * sysdep.c (str_collate) [WINDOWSNT]: Adapt to the interface
 +      change.
 +
 +2014-08-29  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * sysdep.c (LC_CTYPE, LC_CTYPE_MASK, towlower_l):
 +      Define substitutes for platforms that lack them.
 +      (str_collate): Add arguments locale and ignore_case.
 +
 +      * fns.c (Fstring_collate_lessp, Fstring_collate_equalp):
 +      Add optional arguments LOCALE and IGNORE-CASE.
 +
 +      * lisp.h (str_collate): Adapt argument list.
 +
 +2014-08-29  Dmitry Antipov  <dmantipov@yandex.ru>
 +
 +      Add vectors support to Fsort.
 +      * fns.c (sort_vector, sort_vector_compare): New functions.
 +      (sort_list): Likewise, refactored out of ...
 +      (Fsort): ... adjusted user.  Mention vectors in docstring.
 +      (sort_vector_predicate) [!HAVE_QSORT_R]: New variable.
 +      * alloc.c (make_save_int_obj): New function.
 +      * lisp.h (enum Lisp_Save_Type): New member SAVE_TYPE_INT_OBJ.
 +      (make_save_int_obj): Add prototype.
 +
 +      Fix last change to support Darwin/OSX and FreeBSD (Bug#18354).
 +      * sysdep.c (sort_vector_compare) [DARWIN_OS || __FreeBSD__]:
 +      Conditionally define to match system's qsort_r signature.
 +      (sort_vector) [DARWIN_OS || __FreeBSD__]: Likewise in call to qsort_r.
 +
 +2014-08-28  Ken Brown  <kbrown@cornell.edu>
 +
 +      Add support for HYBRID_MALLOC, allowing the use of gmalloc before
 +      dumping and the system malloc after dumping.  (Bug#18222)
 +
 +      * conf_post.h (malloc, realloc, calloc, free) [HYBRID_MALLOC]:
 +      Define as macros, expanding to hybrid_malloc, etc.
 +      (HYBRID_GET_CURRENT_DIR_NAME): New macro.
 +      (get_current_dir_name) [HYBRID_GET_CURRENT_DIR_NAME]: Define as
 +      macro.
 +      * gmalloc.c: Set up the infrastructure for HYBRID_MALLOC, with a
 +      full implementation on Cygwin.  Remove Cygwin-specific code that
 +      is no longer needed.
 +      (malloc, realloc, calloc, free, aligned_alloc) [HYBRID_MALLOC]:
 +      Redefine as macros expanding to gmalloc, grealloc, etc.
 +      (DUMPED, ALLOCATED_BEFORE_DUMPING) [CYGWIN]: New macros.
 +      (get_current_dir_name) [HYBRID_GET_CURRENT_DIR_NAME]: Undefine.
 +      (USE_PTHREAD, posix_memalign) [HYBRID_MALLOC]: Don't define.
 +      (hybrid_malloc, hybrid_calloc, hybrid_free, hybrid_realloc)
 +      [HYBRID_MALLOC]:
 +      (hybrid_get_current_dir_name) [HYBRID_GET_CURRENT_DIR_NAME]:
 +      (hybrid_aligned_alloc) [HYBRID_MALLOC && (HAVE_ALIGNED_ALLOC ||
 +      HAVE_POSIX_MEMALIGN)]: New functions.
 +      * alloc.c (aligned_alloc) [HYBRID_MALLOC && (ALIGNED_ALLOC ||
 +      HAVE_POSIX_MEMALIGN)]: Define as macro expanding to
 +      hybrid_aligned_alloc; declare.
 +      (USE_ALIGNED_ALLOC) [HYBRID_MALLOC && (ALIGNED_ALLOC ||
 +      HAVE_POSIX_MEMALIGN)]: Define.
 +      (refill_memory_reserve) [HYBRID_MALLOC]: Do nothing.
 +      * sysdep.c (get_current_dir_name) [HYBRID_GET_CURRENT_DIR_NAME]:
 +      Define as macro, expanding to gget_current_dir_name, and define
 +      the latter.
 +      * emacs.c (main) [HYBRID_MALLOC]: Don't call memory_warnings() or
 +      malloc_enable_thread().  Don't initialize malloc.
 +      * lisp.h (NONPOINTER_BITS) [CYGWIN]: Define (because GNU_MALLOC is
 +      no longer defined on Cygwin).
 +      (refill_memory_reserve) [HYBRID_MALLOC]: Don't declare.
 +      * sheap.c (bss_sbrk_buffer_end): New variable.
 +      * unexcw.c (__malloc_initialized): Remove variable.
 +      * ralloc.c: Throughout, treat HYBRID_MALLOC the same as
 +      SYSTEM_MALLOC.
 +      * xdisp.c (decode_mode_spec) [HYBRID_MALLOC]: Don't check
 +      Vmemory_full.
 +
 +2014-08-28  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * w32term.c (w32_horizontal_scroll_bar_handle_click): In
 +      `event->y' return entire range (the size of the scroll bar minus
 +      that of the thumb).
 +      * xterm.c (xm_scroll_callback, xaw_jump_callback): In `whole'
 +      return entire range (the scaled size of the scroll bar minus
 +      that of the slider).  In `portion' return the scaled position of
 +      the slider.
 +      (xaw_jump_callback): Restore part of code for vertical scroll
 +      bar broken in change from 2014-07-27.
 +      (xaw_scroll_callback): Provide incremental scrolling with
 +      horizontal scroll bars.
 +
 +2014-08-28  Eli Zaretskii  <eliz@gnu.org>
  
 -      * xdisp.c (handle_stop): Improve commentary.
 +      * conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.
  
        * indent.c (Fvertical_motion): Fix vertical motion up through a
        display property after a newline.  (Bug#18276)
diff --cc src/conf_post.h
Simple merge
diff --cc src/dispnew.c
Simple merge
diff --cc src/eval.c
Simple merge
diff --cc src/xdisp.c
Simple merge
diff --cc test/ChangeLog
index 70c2af66194f9867d7f82e8730b8d78ccb4d6276,dcab604dbb10a5d45ebeb855c3ed5db2c1bc1c14..5b7142845e7945192e872c2a47095fb496c8a3ec
@@@ -1,8 -1,9 +1,13 @@@
 -2014-09-01  Fabián Ezequiel Gallina  <fgallina@gnu.org>
++2014-09-03  Fabián Ezequiel Gallina  <fgallina@gnu.org>
 -      * automated/python-tests.el:
 -      (python-indent-electric-colon-1): New test.  (Bug#18228)
++      * automated/python-tests.el (python-indent-electric-colon-1):
++      New test.  (Bug#18228)
++
 +2014-08-29  Dmitry Antipov  <dmantipov@yandex.ru>
  
 -2014-08-18  Glenn Morris  <rgm@gnu.org>
 +      * automated/fns-tests.el (fns-tests-sort): New test.
 +
 +2014-08-28  Glenn Morris  <rgm@gnu.org>
  
        * automated/python-tests.el (python-shell-calculate-exec-path-2):
        Update test for today's python.el changes.
index 0000000000000000000000000000000000000000,84d0f6d8786021aaded984b5399485cc9e774f9e..84d0f6d8786021aaded984b5399485cc9e774f9e
mode 000000,100755..100644
--- /dev/null