1. 01 Sep, 2014 7 commits
    • Eli Zaretskii's avatar
      Use the new string-collate-lessp function in ls-lisp.el. · 0360ec58
      Eli Zaretskii authored
       lisp/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.
      
       etc/NEWS: Mention that ls-lisp uses string-collate-lessp.
      
      Fixes: debbugs:18051
      0360ec58
    • Eli Zaretskii's avatar
      src/lastfile.c: Fix last change. · 8d033ecb
      Eli Zaretskii authored
      8d033ecb
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · acb6f20c
      Glenn Morris authored
      acb6f20c
    • Paul Eggert's avatar
      Fix typo in previous change's ChangeLog. · 177030ba
      Paul Eggert authored
      177030ba
    • Paul Eggert's avatar
      --enable-silent-warnings now suppresses more chatter. · bc12381e
      Paul Eggert authored
      * INSTALL, etc/NEWS: Document this.
      * lib-src/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.
      (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
      (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
      (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT})
      (emacsclientw${EXEEXT}, ntlib.o, hexl${EXEEXT})
      (update-game-score${EXEEXT}): Use them.
      * lwlib/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
      (.c.o): Use them.
      * oldXMenu/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
      (.c.o): Use them.
      * src/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.
      bc12381e
    • Paul Eggert's avatar
      Clean up extern decls a bit. · 1564080f
      Paul Eggert authored
      * configure.ac (WERROR_CFLAGS): Don't disable -Wnested-externs.
      While we're at it, don't disable -Wlogical-op either.
      * src/bytecode.c: Include blockinput.h and keyboard.h rather
      than rolling their APIs by hand.
      * src/emacs.c: Include regex.h and rely on its and lisp.h's API
      rather than rolling them by hand.
      * src/lastfile.c: Include lisp.h, to check this file's API.
      * src/lisp.h (lisp_eval_depth, my_edata, my_endbss, my_endbss_static):
      New decls.
      * src/regex.h (re_max_failures): New decl.
      * src/unexcw.c, src/unexmacosx.c, src/unexw32.c:
      Rely on lisp.h's API rather than rolling it by hand.
      * src/vm-limit.c (__after_morecore_hook, __morecore, real_morecore):
      Declare at top level, to pacify GCC -Wnested-externs.
      1564080f
    • Paul Eggert's avatar
      * etags.c (emacs_strchr, emacs_strrchr): Remove. · 56f9f0ab
      Paul Eggert authored
      All uses replaced by strchr and strrchr, which are on all
      target platforms now.
      56f9f0ab
  2. 31 Aug, 2014 5 commits
  3. 30 Aug, 2014 6 commits
    • Paul Eggert's avatar
      0ac6761d
    • Paul Eggert's avatar
      Vector-sorting fixes. · f9caea82
      Paul Eggert authored
      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.
      * admin/merge-gnulib (GNULIB_MODULES): Add vla.
      * configure.ac (qsort_r): Remove, as we no longer use qsort-like
      functions.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/vla.h, m4/vararrays.m4: New files, copied from gnulib.
      * lib/stdlib.in.h, m4/stdlib_h.m4: Sync from gnulib, incorporating:
      2014-08-29 qsort_r: new module, for GNU-style qsort_r
      The previous two files' changes are boilerplate generated by
      admin/merge-gnulib, and should not affect Emacs.
      * src/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.
      
      Fixes: debbugs:18361
      f9caea82
    • Paul Eggert's avatar
      * sysdep.c (str_collate): Clear errno just before wcscoll(_l). · 88366fcf
      Paul Eggert authored
      One can't hoist this out of the 'if', because intervening calls to
      newlocale, twolower, etc. can change errno.
      88366fcf
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Minor ChangeLog fixes. · 670e4e48
      Eli Zaretskii authored
      670e4e48
    • Eli Zaretskii's avatar
      Improve error checking and error messages in string-collation functions. · e7027eab
      Eli Zaretskii authored
       src/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.
       src/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.
      e7027eab
  4. 29 Aug, 2014 17 commits
  5. 28 Aug, 2014 5 commits
    • Stefan Monnier's avatar
      562d55be
    • Stefan Monnier's avatar
      * lisp/progmodes/cc-defs.el: Expose c-lanf-defconst's expressions to the · 16f1e25b
      Stefan Monnier authored
      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'.
      16f1e25b
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-shell-command): Use `display-buffer'. · 0f8fb0b9
      Michael Albinus authored
      Fixes: debbugs:18326
      0f8fb0b9
    • Martin Rudalics's avatar
      cd19ba4c
    • Ken Brown's avatar
      Add support for HYBRID_MALLOC, allowing the use of gmalloc before · ea652500
      Ken Brown authored
      dumping and the system malloc after dumping.  (Bug#18222)
      
      * configure.ac (HYBRID_MALLOC): New macro; define to use gmalloc
      before dumping and the system malloc after dumping.  Define on Cygwin.
      * src/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.
      * src/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.
      * src/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.
      * src/sysdep.c (get_current_dir_name) [HYBRID_GET_CURRENT_DIR_NAME]:
      Define as macro, expanding to gget_current_dir_name, and define
      the latter.
      * src/emacs.c (main) [HYBRID_MALLOC]: Don't call memory_warnings() or
      malloc_enable_thread().  Don't initialize malloc.
      * src/lisp.h (NONPOINTER_BITS) [CYGWIN]: Define (because GNU_MALLOC is
      no longer defined on Cygwin).
      (refill_memory_reserve) [HYBRID_MALLOC]: Don't declare.
      * src/sheap.c (bss_sbrk_buffer_end): New variable.
      * src/unexcw.c (__malloc_initialized): Remove variable.
      * src/ralloc.c: Throughout, treat HYBRID_MALLOC the same as
      SYSTEM_MALLOC.
      * src/xdisp.c (decode_mode_spec) [HYBRID_MALLOC]: Don't check
      	Vmemory_full.
      ea652500