1. 04 Aug, 2019 17 commits
    • Paul Eggert's avatar
      Fix one more 2019-08-04 regex lint · 543568b6
      Paul Eggert authored
      Problem clarified by Mattias Engdegård in:
      * lisp/isearch.el (isearch-symbol-regexp):
      Remove \s@ from regexp as it cannot match.
    • Basil L. Contovounesios's avatar
      Support reverting Apropos buffers (bug#36588) · 4cd41ba8
      Basil L. Contovounesios authored
      * lisp/apropos.el (apropos--current): New variable akin to
      help-xref-stack-item storing information for revert-buffer.
      (apropos--revert-buffer): New function.
      (apropos-mode): Use it as revert-buffer-function.
      (apropos-command, apropos, apropos-library, apropos-value)
      (apropos-local-value, apropos-documentation): Set apropos--current
      in low-level commands, i.e., those which do not call other commands.
    • Paul Eggert's avatar
      Fix 2019-08-04 regex lint · a5b796a8
      Paul Eggert authored
      Problem reported by Mattias Engdegård in:
      * lisp/calendar/diary-lib.el (diary-glob-file-regexp-prefix):
      Omit unnecessary ‘\’ before ordinary char.
      * lisp/cedet/inversion.el (inversion-decoders):
      * lisp/org/ob-haskell.el (org-babel-haskell-export-to-lhs):
      Omit unnecessary ‘?’ after nullable pattern.
      * lisp/org/org-capture.el (org-capture-fill-template):
      Match upper-case as well as lower-case letters.
      * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings)
      Simplify ‘.|\r’ to ‘.’.
      * lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer):
      Put ‘-’ at end of bracket expression.
    • Paul Eggert's avatar
      Tweak time arithmetic performance · 7748ef21
      Paul Eggert authored
      * src/timefns.c (lispint_arith): New function, which
      should be a bit faster if B is 0, or if A is a bignum
      and B a fixnum with absolute value in unsigned long range.
      (time_arith): Use it.
    • Paul Eggert's avatar
      Improve time function doc · 5f3f3884
      Paul Eggert authored
      * doc/misc/emacs-mime.texi (time-date): Don’t give
      parse-iso8601-time-string in the example, as the function is
      not autoloaded.
      * lisp/gnus/nndiary.el (nndiary-compute-reminders):
      No need to call encode-time or use floating point here.
    • Eli Zaretskii's avatar
      Fix the MS-Windows build broken by recent changes · f01597a4
      Eli Zaretskii authored
      * src/inotify.c (syms_of_inotify) <Qignored>: Don't define here...
      * src/coding.c (syms_of_coding) <Qignored>: ...define it here,
      because it is needed also on platforms that don't compile
    • Paul Eggert's avatar
      Minor fix to recent coding.c change · 3c459e3b
      Paul Eggert authored
      * src/coding.c (get_buffer_gap_address):
      Don’t assume string or buffer length fits in int.
      Also, improve wording of comments.
    • Michael Albinus's avatar
    • Lars Ingebrigtsen's avatar
      Capitalise a couple of node names · 21ada03d
      Lars Ingebrigtsen authored
      * doc/lispref/functions.texi (Advising Functions): Capitalise node
      names (bug#17717).
      (Advice Combinators, Porting Old Advice): Capitalise.
    • Michael Heerdegen's avatar
      Clarify macroexp-let* doc string · bbb41a20
      Michael Heerdegen authored
      * lisp/emacs-lisp/macroexp.el (macroexp-let2*): Clarify doc
      string (bug#19371).
    • K. Handa's avatar
    • K. Handa's avatar
      Add Unicode-safe UTF-8 converter · a8026dfd
      K. Handa authored
      * src/coding.c (encode_string_utf_8, decode_string_utf_8): New functions.
      * src/coding.h (encode_string_utf_8, decode_string_utf_8): Extern them.
    • Lars Ingebrigtsen's avatar
      Core Advising Primitives `interactive' clarification · 151a99cc
      Lars Ingebrigtsen authored
      * doc/lispref/functions.texi (Core Advising Primitives): Clarify
      when the interactive spec is a function (bug#17871).
    • Michael Albinus's avatar
      Implement set-file-* functions for tramp-gvfs.el · 2abcca23
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-gio-mapping):
      Add "gvfs-set-attribute".
      Add `tramp-gvfs-handle-set-file-modes',
      `tramp-gvfs-handle-set-file-times' and
      (tramp-sh-handle-set-file-uid-gid): New defuns.
      * lisp/net/tramp.el (tramp-handle-write-region): Set file modes.
      * test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
      (tramp-test22-file-times): Do not skip for tramp-gvfs.el.
    • Martin Rudalics's avatar
      Fix two mouse drag and drop issues (Bug#28620, Bug#36269) · 5ec3f705
      Martin Rudalics authored
      Allow 'mouse-drag-and-drop-region' to move/copy text from one
      frame to another (Bug#28620).  Prevent mouse avoidance mode from
      interfering with 'mouse-drag-and-drop-region' (Bug#36269).
      * lisp/avoid.el (mouse-avoidance-ignore-p): Suspend avoidance
      when 'track-mouse' equals 'dropping'.
      * lisp/mouse.el (mouse-drag-and-drop-region): Set
      'track-mouse' to 'dropping'.  Continue reading events also
      when switching frames.
      * src/keyboard.c (Finternal_track_mouse): Rename from
      (some_mouse_moved): Return NULL also when mouse is not tracked.
      (show_help_echo, readable_events, kbd_buffer_get_event): Don't
      check whether mouse is tracked, some_mouse_moved does it now.
      (track_mouse): Rename variable from do_mouse_tracking.  Adjust
      all users.  In doc-string explain meanings of special values
      'dragging' and 'dropping'.
      * src/nsterm.m (ns_mouse_position): During drag and drop
      consider last mouse frame only when there is no currently
      focused frame.
      * src/w32fns.c (w32_wnd_proc): Don't set mouse capture during a
      drag and drop operation.
      * src/w32term.c (w32_mouse_position): Track frame under mouse
      during mouse drag and drop.
      (mouse_or_wdesc_frame): New function.
      (w32_read_socket): Call mouse_or_wdesc_frame on mouse events.
      * src/xdisp.c (define_frame_cursor1): Don't change mouse cursor
      shape during mouse drag and drop.
      (syms_of_xdisp): New symbol Qdropping.
      * src/xterm.c (XTmouse_position): Allow mouse drag and drop move
      to another frame
      (mouse_or_wdesc_frame): New function.
      (handle_one_xevent): Use mouse_or_wdesc_frame for mouse events.
    • Noam Postavsky's avatar
      Improved ChangeLog generation for vc log (Bug#16301) · 01661f33
      Noam Postavsky authored
      * lisp/vc/diff-mode.el (diff-find-source-location): Fix docstring.
      * lisp/vc/add-log.el (change-log-unindented-file-names-re)
      (change-log-read-entries, change-log-read-defuns)
      * lisp/vc/diff-mode.el (diff-add-log-current-defuns):
      * lisp/vc/log-edit.el (log-edit--insert-filled-defuns)
      (log-edit-fill-entry): New functions.
      (log-edit-mode): Set `log-edit-fill-entry' as
      (log-edit-generate-changelog-from-diff): New command.
      (log-edit-mode-map): Bind it to C-c C-w.
      * doc/emacs/maintaining.texi (Types of Log File, Log Buffer):
      * CONTRIBUTE: Document it.
      * etc/NEWS: Announce it.
      * test/lisp/vc/log-edit-tests.el (log-edit-fill-entry)
      (log-edit-fill-entry-joining): New tests.
    • Eric Abrahamsen's avatar
      Fix Gnus group name reference in gnus-mark-xrefs-as-read · 2d47483e
      Eric Abrahamsen authored
      * lisp/gnus/gnus-sum.el (gnus-mark-xrefs-as-read): There's already a
      local binding for "group", don't need another "name". This was left
      over from the obarray-to-hashtable change.
  2. 03 Aug, 2019 23 commits
    • Eric Abrahamsen's avatar
      Temporarily preserve encoded Gnus group names in Gnus files · 727e0eab
      Eric Abrahamsen authored
      Non-ascii Gnus groups should be written to files in their encoded
      version until we're ready to bump Gnus' version and add an upgrade
      * lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format):
      * lisp/gnus/gnus-agent.el (gnus-category-read):
        (gnus-category-write): Handle non-ascii group names appropriately.
      * lisp/gnus/gnus-registry.el (gnus-registry--munge-group-names): New
        function to encode/decode group names.
        (gnus-registry-save): Use function.
    • Eric Abrahamsen's avatar
      Remove Gnus group name encoding/decoding · cb12a84f
      Eric Abrahamsen authored
      This completes the process started in c1b63af4. Gnus group names are
      now fully decoded inside the Gnus system.
      * lisp/gnus/gnus-agent.el (gnus-agent-file-coding-system): Change
        default to utf-8-emacs.
        (gnus-agent-decoded-group-names, gnus-agent-decoded-group-name):
        Remove variable and function. Remove all usage in this file.
      * lisp/gnus/gnus-cache.el (gnus-cache-decoded-group-names,
        gnus-cache-unified-group-names, gnus-cache-decoded-group-name):
        Remove these variables and function. Remove all usage in this file.
      * lisp/gnus/gnus-group.el (gnus-tmp-decoded-group): Remove this
        variable, gnus-tmp-group is now decoded.
        (gnus-group-completing-read): Don't encode or decode group names
        (gnus-group-make-group): Remove ENCODED argument.
      * lisp/gnus/gnus-srvr.el (gnus-browse-foreign-server): Decode group
        names here.
      * lisp/gnus/gnus-start.el (gnus-make-hashtable-from-newsrc-alist):
        check for encoded group names and decode.
        (gnus-active-to-gnus-format): Make sure incoming group names are
        (gnus-read-newsrc-el-file): Check for encoded group names in
      * lisp/gnus/nnagent.el: Don't use a unibyte buffer.
      * lisp/gnus/nnheader.el (nnheader-file-coding-system): Switch default
        from 'raw-text to 'undecided, on the assumption that 'undecided will
        probably write 'utf-8-emacs unless the user has arranged things
      * lisp/gnus/nnimap.el (nnimap-decode-gnus-group,
        nnimap-encode-gnus-group): Remove functions and their use.
      * lisp/gnus/nnmail.el (nnmail-parse-active): Remove encoding.
        (nnmail-active-file-coding-system): Default to 'utf-8-emacs instead
        of 'raw-text.
        (nnmail-group-names-not-encoded-p): Obsolete this variable; stop
        using it.
      * lisp/gnus/gnus-art.el:
      * lisp/gnus/gnus-cus.el:
      * lisp/gnus/gnus-msg.el:
      * lisp/gnus/gnus-start.el:
      * lisp/gnus/gnus-sum.el:
      * lisp/gnus/gnus.el:
      * lisp/gnus/nnml.el:
      * lisp/gnus/message.el:
      * lisp/gnus/nnrss.el: Stop using gnus-group-decoded-name in all these
    • Eric Abrahamsen's avatar
      Fix ordering of Gnus groups after yanking · c6b4eed8
      Eric Abrahamsen authored
      * lisp/gnus/gnus-start.el (gnus-group-change-level): Fix docstring to
      note that the inserted group is inserted *before* the PREVIOUS
      group. Fix indexing -- shouldn't have been adding one to the index.
    • Paul Eggert's avatar
      Remove stale .pdmp files with ‘make clean’ · da03988d
      Paul Eggert authored
      Problem reported by Sven Joachim (Bug#36907).
      * admin/make-emacs: Simplify, now that clean does versionclean.
      * src/Makefile.in ($(etc)/DOC, versionclean, extraclean):
      Don’t ignore rm -f failures.
      (versionclean): Also remove emacs-*.*.*[0-9].pdmp and ../etc/DOC*.
      (clean): Depend on versionclean and simplify.
    • Glenn Morris's avatar
      * doc/lispref/display.texi (SVG Images): Remove menu. · 7bb269ea
      Glenn Morris authored
      Not needed since SVG Path Commands was changed to not be a node.
    • Lars Ingebrigtsen's avatar
      Clarify hi-lock-file-patterns-prefix doc string · af1509b2
      Lars Ingebrigtsen authored
      * lisp/hi-lock.el (hi-lock-file-patterns-prefix): Clarify doc
      string (bug#17993).
    • Lars Ingebrigtsen's avatar
      Mention `themed-value' in Variable Definitions node · d084fd47
      Lars Ingebrigtsen authored
      * doc/lispref/customize.texi (Variable Definitions): Mention
      `themed-value' (bug#17996).
    • Oleh Krehel's avatar
      calc mode line touch up · 9fbae679
      Oleh Krehel authored
      * lisp/calc/calc.el (calc-set-mode-line): Don't put excessive
      white space in mode line (bug#18079).
    • Paul Eggert's avatar
      Fix rare undefined behaviors in replace-match · 13fe8a27
      Paul Eggert authored
      * src/search.c (Freplace_match): Simplify by caching search_regs
      components.  Fix sanity check for out-of-range subscripts;
      it incorrectly allowed negative subscripts, subscripts
      equal to search_regs.num_regs, and it had undefined
      behavior for subscripts outside ptrdiff_t range.
      Improve wording of newly-introduced replace-match diagnostic.
      Rework use of opoint, to avoid setting point to an out-of-range value
      in rare cases involving modification hooks.
    • Pierre-Yves Luyten's avatar
      cua-rect help: check for 'control value · b60b6ffb
      Pierre-Yves Luyten authored
      * lisp/emulation/cua-rect.el (cua-help-for-rectangle): Check for
      'control value (bug#18120).
      Copyright-paperwork-exempt: yes
    • Lars Ingebrigtsen's avatar
      delete-backward/forward-char doc string clarification · 2e29a258
      Lars Ingebrigtsen authored
      * lisp/simple.el (delete-backward-char): Doc string clarification
      (delete-forward-char): Ditto.
    • Lars Ingebrigtsen's avatar
      ido-find-file doc string addition · 2a941b84
      Lars Ingebrigtsen authored
      * lisp/ido.el (ido-find-file): Mention ido-reread-directory
      (bug#18275).  Suggested by Rob Browning.
    • Kevin Ryde's avatar
      easy-menu-define doc string fix · 0e3e0122
      Kevin Ryde authored
      * emacs-lisp/easymenu.el (easy-menu-define): Docstring :label and
      :help of the menu itself.
    • Lars Ingebrigtsen's avatar
      Add some function index entries for ido.texi · 9fa60c19
      Lars Ingebrigtsen authored
      * doc/misc/ido.texi: Add index entries for functions (bug#18691).
    • Andreas Politz's avatar
      Tweak tq queue processing · 95d2250b
      Andreas Politz authored
      * lisp/emacs-lisp/tq.el (tq-process-buffer): Pop the queue before
      calling the function because the function may add new entries to
      the queue (bug#19016).  Also report errors.
    • Lars Ingebrigtsen's avatar
      Tweak tango-dark-theme hightlight face · d70bf3a1
      Lars Ingebrigtsen authored
      * etc/themes/tango-dark-theme.el (class): Make highlight a bit
      less yellow to make the cursor visible on it (bug#19189).
    • Lars Ingebrigtsen's avatar
      Fix error message in replace-match for subexpressions · 18e163fd
      Lars Ingebrigtsen authored
      * src/search.c (Freplace_match): Output a more understandable
      error message when replacing a subexpression (bug#19208).
    • Lars Ingebrigtsen's avatar
      Clarify Freplace_match logic · f77a3951
      Lars Ingebrigtsen authored
      * src/search.c (Freplace_match): Add some doc strings to clarify
      the logic and do a minor clean up (bug#19208).
    • Lars Ingebrigtsen's avatar
      Don't refer to non-existent functions in mode line examples · 6c7ab768
      Lars Ingebrigtsen authored
      * doc/lispintro/emacs-lisp-intro.texi (Mode Line): Ditto.
      * doc/lispref/modes.texi (Mode Line Top): In the :eval example,
      use a function that exists to avoid confusion (bug#19224).
    • Lars Ingebrigtsen's avatar
      Fix previous macroexp-progn doc string fix · 8edd4bc2
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/macroexp.el (macroexp-progn): Fix previous doc
      string clarification.
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix a typo. (Bug#36829) · 3bff466a
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Minor doc fix in etags.el · 5ae1191e
      Eli Zaretskii authored
      * lisp/progmodes/etags.el
      (etags-xref-find-definitions-tag-order): Doc fix.  (Bug#32510)
    • Eli Zaretskii's avatar
      Improve documentation of debugging Lisp syntax error · faafd467
      Eli Zaretskii authored
      * doc/lispref/debugging.texi (Syntax Errors, Excess Open)
      (Excess Close): Name the commands invoked by the key
      sequences.  Add cross-references to appropriate sections of
      the Emacs manual.  (Bug#21385)