1. 02 Jul, 2018 1 commit
    • John Shahid's avatar
      Optionally add argument description in minor mode DOC (bug#10754) · ee3e4323
      John Shahid authored
      Add a paragraph to minor mode's docstring documenting the mode's ARG
      usage if the supplied docstring doesn't already contain the word "ARG".
      
      * easy-mmode.el (easy-mmode--arg-docstring): New const.
      (easy-mmode--arg-docstring): New function.
      (define-minor-mode): Use them.
      
      Remove argument documentation from all minor modes.
      ee3e4323
  2. 01 Jul, 2018 7 commits
  3. 30 Jun, 2018 8 commits
    • João Távora's avatar
      64eb2fc7
    • João Távora's avatar
    • João Távora's avatar
      Add lisp/jsonrpc.el · 8af26410
      João Távora authored
      * doc/lispref/text.texi (Text): Add JSONRPC.
      (JSONRPC): New node.
      
      * etc/NEWS (New Modes and Packages in Emacs 27.1): Mention jsonrpc.el
      
      * lisp/jsonrpc.el: New file.
      
      * test/lisp/jsonrpc-tests.el: New file.
      8af26410
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Speed up reading sub-process output on MS-Windows · ed65ea18
      Eli Zaretskii authored
      * src/w32proc.c (syms_of_ntproc) <w32-pipe-read-delay>: Set to
      zero.  For the details, see this discussion:
      http://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00711.html.
      * src/w32.c (_sys_read_ahead): Update the commentary for
      w32-pipe-read-delay usage.
      
      * doc/emacs/msdos.texi (Windows Processes): Document
      w32-pipe-read-delay.
      
      * etc/NEWS: Mention the change of the value of w32-pipe-read-delay.
      ed65ea18
    • Eli Zaretskii's avatar
      Speed-up let-binding of automatically-local variables · 3b4e65e7
      Eli Zaretskii authored
      * src/data.c (set_default_internal): Use FOR_EACH_LIVE_BUFFER
      when binding variables that don't nominally have a local
      value, to avoid slowing down due to a large number of dead
      buffers.  (Bug#18522) (Bug#31853)
      3b4e65e7
    • Paul Eggert's avatar
      Update from Gnulib · 35e9dcab
      Paul Eggert authored
      This incorporates:
      2018-06-29 regex: glibc does not use intprops.h
      2018-06-28 regex: port to recently proposed glibc regex merge
      2018-06-25 Continue to use spaces for indentation, not tabs
      2018-06-25 manywarnings: Don't enable -Wjump-misses-init by default
      2018-06-25 acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
      2018-06-24 manywarnings: accommodate GCC 9: remove -Wchkp and -Wabi
      2018-06-24 maint: clarify comments about sticky EOF
      2018-06-24 af_alg: avoid hangs when reading from streams
      2018-06-17 crypto: use byteswap
      2018-06-17 getloadavg: Return 0 on MS-Windows without Cygwi
      2018-06-17 getloadavg: Allow building on MS-Windows without Cygwin
      * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
      * lib/acl-internal.c, lib/acl-internal.h, lib/get-permissions.c:
      * lib/getloadavg.c, lib/gettimeofday.c, lib/md5.c, lib/pselect.c:
      * lib/set-permissions.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
      * lib/time.in.h, m4/getloadavg.m4, m4/gnulib-common.m4:
      * m4/manywarnings.m4, m4/pthread_sigmask.m4, m4/vararrays.m4:
      Copy from Gnulib.
      35e9dcab
    • Paul Eggert's avatar
      unbind_to performance tuning · 2e281186
      Paul Eggert authored
      * src/alloc.c (which_symbols):
      * src/dispnew.c (Fredisplay):
      * src/editfns.c (Fsubst_char_in_region):
      * src/fileio.c (Fdo_auto_save):
      * src/indent.c (Fvertical_motion):
      * src/keymap.c (Fcurrent_active_maps):
      * src/lread.c (Feval_buffer):
      * src/minibuf.c (get_minibuffer):
      * src/sysdep.c (system_process_attributes):
      * src/textprop.c (Fnext_single_char_property_change)
      (Fprevious_single_char_property_change):
      * src/window.c (Fscroll_other_window, Fscroll_other_window_down):
      * src/xdisp.c (Fformat_mode_line):
      Help the compiler eliminate tail recursion in call to unbind_to.
      * src/coding.c (decode_coding_gap):
      Omit unnecessary unbind_to, as we’re about to call unbind_to anyway.
      * src/coding.c (Fread_coding_system):
      * src/eval.c (eval_sub):
      * src/xdisp.c (handle_single_display_spec, decode_mode_spec):
      * src/xselect.c (x_get_local_selection):
      Avoid need to save a machine register when calling unbind_to.
      * src/minibuf.c (Ftry_completion, Fall_completions):
      Omit unnecessary assignment.
      2e281186
  4. 29 Jun, 2018 5 commits
  5. 28 Jun, 2018 2 commits
    • Paul Eggert's avatar
      Fix recently-introduced SAFE_FREE bug · ddc4371a
      Paul Eggert authored
      Problem reported by Andy Moreton (Bug#31996).
      * src/lisp.h (union specbinding.unwind_array):
      Remove unused member func.  Move array after nelts, as this is
      likely to generate more efficient code in safe_free, which can
      call xfree with the same value either way.
      (safe_free): Also handle SPECPDL_UNWIND_AWAY.
      ddc4371a
    • Paul Eggert's avatar
      Tune SAFE_FREE · 76eda952
      Paul Eggert authored
      On my platform (Fedora 28 x86-64, AMD Phenom II X4 910e) this sped
      up a SAFE_FREE-using microbenchmark (string-distance "abc" "abc")
      by about 18%, and shrank the Emacs text size by about 0.1%.
      * src/callint.c (Fcall_interactively):
      * src/callproc.c (call_process):
      * src/doc.c (get_doc_string, Fsnarf_documentation):
      * src/editfns.c (Freplace_buffer_contents):
      * src/emacs-module.c (funcall_module):
      * src/eval.c (Flet):
      * src/process.c (Fmake_process):
      * src/term.c (tty_menu_show):
      * src/xdisp.c (safe__call):
      * src/xmenu.c (x_menu_show):
      Use SAFE_FREE_UNBIND_TO.
      * src/data.c (wrong_choice): No need to call SAFE_FREE here.
      * src/lisp.h (USE_SAFE_ALLOCA):
      * src/regex.c (REGEX_USE_SAFE_ALLOCA):
      Do not declare sa_must_free local; no longer needed.
      All uses removed.
      (SAFE_FREE): Rewrite in terms of safe_free.
      (safe_free): New function, optimized to use xfree.
      (SAFE_FREE_UNBIND_TO): New macro.
      (safe_free_unbind_to): New function.
      76eda952
  6. 27 Jun, 2018 3 commits
  7. 26 Jun, 2018 2 commits
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 513b97c0
      Glenn Morris authored
      12c77f69 (origin/emacs-26) Add ido-fallback special variable (Bug#31707)
      826e8d1f Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into...
      c7848767 Tighten a cross-reference in documentation
      517dc0b1 Fix last change in tramp-sh.el
      f43186fe Revert previous patch; comment was OK after all.
      4c3306e1 Fix lead comment for count_trailing_zero_bits
      b419f27a ; * doc/emacs/files.texi (Interlocking): Fix a non-portable @...
      7488de4f * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix docstring q...
      0b698070 Make a minor update to the CSS mode docstring
      9a53b6d4 Say how to override a primitive interactive spec
      1d770788 Fix Bug#31941
      513b97c0
    • Christophe Junke's avatar
      Add ido-fallback special variable (Bug#31707) · 12c77f69
      Christophe Junke authored
      Before ido.el switch to lexical-binding, it was possible for other
      packages to modify the 'fallback' variables declared inside
      'ido-file-internal' and 'ido-buffer-internal'.
      * lisp/ido.el (ido-fallback): New variable.
      (ido-buffer-internal, ido-file-internal): Reset ido-fallback to nil
      before prompting user.  Use ido-fallback when ido-exit is 'fallback'.
      (ido-fallback-command): Add optional FALLBACK-COMMAND argument.
      
      Copyright-paperwork-exempt: yes
      12c77f69
  8. 25 Jun, 2018 12 commits