1. 05 Aug, 2019 2 commits
    • Mattias Engdegård's avatar
      47a3e0dc
    • Martin Rudalics's avatar
      Fix doc-strings of 'display-buffer-*' functions (Bug#19461) · 88be35e1
      Martin Rudalics authored
      * lisp/window.el (display-buffer-in-atom-window)
      (display-buffer-in-side-window, display-buffer-record-window)
      (display-buffer-use-some-frame, display-buffer-same-window)
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window, display-buffer-in-child-frame)
      (display-buffer-in-direction, display-buffer-below-selected)
      (display-buffer-at-bottom, display-buffer-in-previous-window)
      (display-buffer-use-some-window)
      (display-buffer--maybe-pop-up-frame-or-window)
      (display-buffer--maybe-pop-up-frame): Fix doc-strings
      (Bug#19461).
      88be35e1
  2. 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:
      https://lists.gnu.org/r/emacs-devel/2019-08/msg00087.html
      * lisp/isearch.el (isearch-symbol-regexp):
      Remove \s@ from regexp as it cannot match.
      543568b6
    • 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.
      4cd41ba8
    • Paul Eggert's avatar
      Fix 2019-08-04 regex lint · a5b796a8
      Paul Eggert authored
      Problem reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-08/msg00085.html
      * 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)
      (c-after-change-mark-abnormal-strings):
      Simplify ‘.|\r’ to ‘.’.
      * lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer):
      Put ‘-’ at end of bracket expression.
      a5b796a8
    • 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.
      7748ef21
    • 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.
      5f3f3884
    • 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
      inotify.c.
      f01597a4
    • 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.
      3c459e3b
    • 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.
      21ada03d
    • 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).
      bbb41a20
    • K. Handa's avatar
      9b7d25e4
    • 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.
      a8026dfd
    • 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).
      151a99cc
    • 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".
      (tramp-gvfs-file-name-handler-alist):
      Add `tramp-gvfs-handle-set-file-modes',
      `tramp-gvfs-handle-set-file-times' and
      `tramp-gvfs-handle-set-file-uid-gid'.
      (tramp-gvfs-handle-set-file-modes)
      (tramp-gvfs-handle-set-file-times)
      (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.
      2abcca23
    • 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
      Ftrack_mouse.
      (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.
      5ec3f705
    • 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)
      (change-log-insert-entries):
      * 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
      `fill-paragraph-function'.
      (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.
      01661f33
    • 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.
      2d47483e
  3. 03 Aug, 2019 21 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
      routine.
      
      * 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-fixup-registry):
        (gnus-registry-save): Use function.
      727e0eab
    • 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
        here.
        (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
        decoded.
        (gnus-read-newsrc-el-file): Check for encoded group names in
        gnus-topic-alist.
      * 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
        otherwise.
      * 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
        files.
      cb12a84f
    • 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.
      c6b4eed8
    • 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.
      da03988d
    • 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.
      7bb269ea
    • 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).
      af1509b2
    • 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).
      d084fd47
    • 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).
      9fbae679
    • 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.
      13fe8a27
    • 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
      b60b6ffb
    • Lars Ingebrigtsen's avatar
      delete-backward/forward-char doc string clarification · 2e29a258
      Lars Ingebrigtsen authored
      * lisp/simple.el (delete-backward-char): Doc string clarification
      (bug#18192).
      (delete-forward-char): Ditto.
      2e29a258
    • 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.
      2a941b84
    • 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.
      0e3e0122
    • 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).
      9fa60c19
    • 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.
      95d2250b
    • 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).
      d70bf3a1
    • 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).
      18e163fd
    • 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).
      f77a3951
    • 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).
      6c7ab768
    • 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.
      8edd4bc2
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix a typo. (Bug#36829) · 3bff466a
      Eli Zaretskii authored
      3bff466a