1. 18 Feb, 2020 1 commit
    • Juri Linkov's avatar
      Support state changing VC operations in dired-mode on files (bug#34949) · 2b04ca05
      Juri Linkov authored
      * lisp/vc/vc.el (vc-deduce-fileset): Don't error out when observer is nil.
      (vc-dired-deduce-fileset): Add optional args 'state-model-only-files'
      and 'observer'.  Check that all files are in a consistent state
      when state-model-only-files is non-nil.  Error out on directories.
      * lisp/vc/vc-dispatcher.el (vc-dispatcher-browsing): Check dired-mode
      for derived-mode-p.
  2. 15 Feb, 2020 1 commit
  3. 14 Feb, 2020 2 commits
  4. 13 Feb, 2020 1 commit
    • Mattias Engdegård's avatar
      Remove the optional KEEP-ORDER argument to regexp-opt · 9f6a4bbc
      Mattias Engdegård authored
      This argument was added for the 'or' clause in rx, but it turned out
      to be a bad idea (bug#37659), and there seems to be little other use
      for it.
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Remove KEEP-ORDER.
      * doc/lispref/searching.texi (Regexp Functions):
      * etc/NEWS: Remove it from the documentation.
      * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-test--match-all)
      (regexp-opt-test--check-perm, regexp-opt-test--explain-perm)
      (regexp-opt-keep-order, regexp-opt-longest-match): Simplify test.
  5. 12 Feb, 2020 1 commit
    • Eli Zaretskii's avatar
      Fix display of minibuffer prompt in ido.el · 027da652
      Eli Zaretskii authored
      * lisp/minibuffer.el (minibuffer--message-overlay-pos): New
      (set-minibuffer-message): Use it to determine where to show the
      overlay with the temporary message.
      * lisp/ido.el (ido-exhibit): Revert "Render Ido suggestions using
      an overlay"; this restores the original code which inserted the
      match-status information into the minibuffer, instead of
      displaying it in an overlay with an after-string.  Put the special
      'minibuffer-message' text property at the beginning of the
      inserted text.  (Bug#39379)
      * etc/NEWS:
      * doc/lispref/display.texi (Displaying Messages):
      * doc/lispref/text.texi (Special Properties): Document the
      'minibuffer-message' text property and its effect.
  6. 10 Feb, 2020 1 commit
  7. 09 Feb, 2020 1 commit
  8. 07 Feb, 2020 2 commits
    • Eli Zaretskii's avatar
      Minor fixes of the last commit · ac6ba689
      Eli Zaretskii authored
      * src/xdisp.c (get_window_cursor_type): Fix indentation and
      * doc/lispref/frames.texi (Cursor Parameters):
      * doc/emacs/display.texi (Cursor Display):
      * etc/NEWS: Fix wording and capitalization of the last change.
    • Zajcev Evgeny's avatar
      Support for (box . SIZE) 'cursor-type' · 63fd6c9e
      Zajcev Evgeny authored
      This allows control of the minimum size of a masked image under
      which the box cursor becomes hollow.
      * buffer.c (cursor-type): Add commentary about (box . SIZE)
      * xdisp.c (get_specified_cursor_type): Check for 'cursor-type'
      of the form (box . SIZE).
      (get_window_cursor_type): Check masked image size for
      (box . SIZE) 'cursor-type'.
      * doc/emacs/display.texi (Cursor Display):
      * doc/emacs/display.texi (Cursor Parameters): Add description
      of (box . SIZE) 'cursor-type'.
      * etc/NEWS: Mention the new (box . SIZE) 'cursor-type'.
  9. 05 Feb, 2020 1 commit
    • Stefan Kangas's avatar
      Add new filter commands to Package Menu (Bug#38424) · aea12d49
      Stefan Kangas authored
      * lisp/emacs-lisp/package.el (package-menu-filter-by-version)
      (package-menu-filter-by-status, package-menu-filter-by-archive):
      New filter commands.
      (package-menu--filter-by): New helper function.
      (package-menu-filter-by-keyword, package-menu-filter-by-name): Use
      the above helper function.
      (package-menu-mode-map): Update menu to include new filter commands.
      * doc/emacs/package.texi (Package Menu): Document the new commands and
      re-arrange the sort order of commands to be closer to the one in
      * etc/NEWS: Announce the new commands.
      * lisp/emacs-lisp/package.el (package-menu--display): New function
      extracted from....
      (package-menu--generate): ...here.
      * test/lisp/emacs-lisp/package-tests.el (with-package-menu-test):
      New macro.
      (package-test-update-listing, package-test-list-filter-by-name)
      (package-test-list-filter-clear): Use above macro.
      (package-test-list-filter-by-version->): New tests.
      (package-test-filter-by-version): New helper function.
  10. 04 Feb, 2020 2 commits
    • Adam Porter's avatar
      * lisp/emacs-lisp/map.el: Add keyword-only pattern abbreviation · e287da5a
      Adam Porter authored
      * lisp/emacs-lisp/map.el: Update version to 2.1.
      ((pcase-defmacro map)): Update docstring.
      (map--make-pcase-bindings): Match keyword pattern.
      * test/lisp/emacs-lisp/map-tests.el (test-map-plist-pcase): Add test.
    • Stefan Kangas's avatar
      Add new help command describe-keymap · 557b790e
      Stefan Kangas authored
      * lisp/help-fns.el (describe-keymap): New command to show key bindings
      for a given keymap.  (Bug#30660)
      * doc/emacs/help.texi (Misc Help): Document the new command.
      * doc/lispref/keymaps.texi (Scanning Keymaps): Add a cross-reference
      to the above documentation.
      * etc/NEWS: Announce the new command.
      * test/lisp/help-fns-tests.el (help-fns-test-describe-keymap/symbol)
      (help-fns-test-describe-keymap/dynamically-bound-no-file): New tests.
      Co-authored-by: default avatarDrew Adams <drew.adams@oracle.com>
  11. 03 Feb, 2020 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/sh-script.el: Remove old non-SMIE indentation code · f9504ffb
      Stefan Monnier authored
      (sh-learn-basic-offset, sh-blink, sh-use-smie): Remove config vars.
      (sh-kw-alist, sh-learned-buffer-hook): Remove var.
      (sh-must-support-indent, sh-mark-init, sh-mark-line): Remove function.
      (sh-kw, sh-special-keywords): Remove constant.
      (sh-help-string-for-variable, sh-read-variable, sh-goto-matching-if)
      (sh-handle-prev-if, sh-handle-this-else, sh-handle-prev-else)
      (sh-handle-this-fi, sh-handle-prev-fi, sh-handle-this-then)
      (sh-handle-prev-then, sh-handle-prev-open, sh-handle-this-close)
      (sh-goto-matching-case, sh-handle-prev-case, sh-handle-this-esac)
      (sh-handle-prev-esac, sh-handle-after-case-label)
      (sh-handle-prev-case-alt-end, sh-safe-forward-sexp)
      (sh-goto-match-for-done, sh-handle-this-done, sh-handle-prev-done)
      (sh-handle-this-do, sh-handle-prev-do, sh-find-prev-switch)
      (sh-handle-this-rc-case, sh-handle-prev-rc-case, sh-check-rule)
      (sh-get-indent-info, sh-get-indent-var-for-line, sh-prev-line)
      (sh-prev-stmt, sh-get-word, sh-prev-thing, sh-this-is-a-continuation)
      (sh-get-kw, sh-find-prev-matching, sh-set-var-value)
      (sh-calculate-indent, sh-indent-line, sh-blink, sh-guess-basic-offset):
      Remove functions.
      (sh-show-indent, sh-set-indent, sh-learn-line-indent)
      (sh-learn-buffer-indent): Redefine as obsolete aliases.
  12. 01 Feb, 2020 1 commit
    • Stephen Gildea's avatar
      Update documentation for mh-show-mode-hook · db7fa254
      Stephen Gildea authored
      * lisp/mh-e/mh-e.el, doc/misc/mh-e.texi (mh-show-mode-hook): Now that
      the fix for MH-E bug #470 calls mh-show-mode-hook earlier, update the
      documentation to no longer say that the message contents are available.
  13. 30 Jan, 2020 1 commit
  14. 29 Jan, 2020 1 commit
  15. 28 Jan, 2020 1 commit
    • Paul Eggert's avatar
      Revert the --with-install-srcdir patch · a02b1792
      Paul Eggert authored
      Also, update description of debuginfo and sources to match
      Debian and Red Hat more accurately, and move this sad tale
      from INSTALL to etc/PROBLEMS which is a better home for it.
      * Makefile.in (emacs_srcdir, install-c-src):
      * configure.ac (emacs_srcdir, --with-install-srcdir):
      * src/epaths.in (PATH_EMACS_SOURCE):
      * src/lread.c (emacs-source-directory):
      Remove.  All uses removed.
      * lisp/emacs-lisp/find-func.el (find-function-C-source):
      Do not worry about compressed C sources.
      * src/lread.c: Do not include <dosname.h>.
  16. 26 Jan, 2020 2 commits
  17. 25 Jan, 2020 1 commit
    • Paul Eggert's avatar
      Install C source code for C-h f etc. · f42d57c7
      Paul Eggert authored
      Without this change, on typical GNU/Linux distributions
      like Debian, the first button of ‘C-h f car RET’ does not work
      because the source code for ‘car’ is not installed (Bug#37527).
      Fix this by installing the (compressed) C source code alongside
      the (compressed) Lisp source code that is already installed.
      This adds about 3 MB (about 2%) to the size of the installed files
      on my platform.
      * Makefile.in (emacs_srcdir): New macro.
      (epaths-force): Substitute PATH_EMACS_SOURCE.
      (install-c-src): New rule, that installs a copy of the C source
      code if emacs_srcdir says to.
      (install-arch-indep): Depend on it.
      * configure.ac (emacs_srcdir): New var.
      Add support for --disable-install-srcdir.
      * lisp/emacs-lisp/find-func.el (find-function-C-source-directory):
      Look in emacs-source-directory first.
      (find-function-C-source): Also look for gzipped source files.
      * lisp/startup.el (normal-top-level):
      Also recode emacs-source-directory.
      * src/epaths.in (PATH_EMACS_SOURCE): New macro.
      * src/lread.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME.
      (syms_of_lread): New var emacs-source-directory.
  18. 24 Jan, 2020 3 commits
    • Robert Pluim's avatar
      Expand Cairo and HarfBuzz descriptions · 9ba7abe2
      Robert Pluim authored
      * etc/NEWS:
      * configure.ac: Expand description of Cairo and Harfbuzz
    • Robert Pluim's avatar
      Warn about XFT and about Cairo without HarfBuzz · 1ebe1605
      Robert Pluim authored
      * configure.ac: Warn about libXFT usage.  Warn about using Cairo
      without HarfBuzz.
      * etc/NEWS: Announce XFT and HarfBuzz warnings.
    • Paul Eggert's avatar
      Simplify locale setup · 75c1f936
      Paul Eggert authored
      Stop exporting Vprevious_system_time_locale and
      Vprevious_system_messages_locale to Elisp.  I did that export by
      mistake in 1999, and the Elisp variables have never been used.
      Simplifying this cruft should make it easier to fix Bug#39248.
      * etc/NEWS: Mention this.
      * src/emacs.c (main): Simplify locale initialization.
      (synchronize_locale): Simplify.
      (Vprevious_system_time_locale, Vprevious_system_messages_locale):
      Now static variables not visible to Lisp, and defined only if
      (Vprevious_system_messages_locale): Define only if LC_MESSAGES.
  19. 22 Jan, 2020 3 commits
    • Eli Zaretskii's avatar
      Fix a few typos · 196c42b8
      Eli Zaretskii authored
      * etc/NEWS: Fix a typo.
      * src/xdisp.c (try_window_reusing_current_matrix, try_window_id):
      * src/dispnew.c (scrolling_window): Fix typos in comments.
    • Michael Albinus's avatar
      Add new Tramp method "media" · 2d9d62bb
      Michael Albinus authored
      * doc/misc/tramp.texi (Quick Start Guide, GVFS-based methods):
      Add media devices.
      * etc/NEWS: Mention new Tramp method "media".
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "media" method.
      (tramp-goa-methods): Add tramp-autoload cookie.
      (tramp-media-methods): New defvar.
      (tramp-gvfs-service-volumemonitor): New defsubst.
      (top): Remove media methods if not supported.  Add defaults for
      (tramp-goa-account): Rename from `tramp-goa-name'.  Adapt all callees.
      (tramp-gvfs-interface-remotevolumemonitor): New defconsts.
      (tramp-media-device): New defstruct.
      (tramp-gvfs-activation-uri): New defun.
      (tramp-gvfs-url-file-name): Use it.
      (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
      Handle "media" method.
      (tramp-get-goa-account): Rename from `tramp-make-goa-name'.  Adapt
      all callees.
      (tramp-get-goa-accounts): Adapt docstring.  Cache with nil key.
      (tramp-parse-goa-accounts, tramp-get-media-device)
      (tramp-parse-media-names): New defuns.
      (top): Rework completion function registration.
      * lisp/net/tramp.el (tramp-dns-sd-service-regexp): New defconst.
      (tramp-set-completion-function): Use it.
    • Helmut Eller's avatar
      Default lisp-mode to use Common Lisp indentation · 0c9da50e
      Helmut Eller authored
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode): Use
      common-lisp-indent-function instead of lisp-indent-function as
      Common Lisp is the most common non-Emacs Lisp today (bug#10097).
  20. 21 Jan, 2020 3 commits
  21. 20 Jan, 2020 1 commit
  22. 19 Jan, 2020 3 commits
    • Michael Albinus's avatar
      ; * etc/NEWS: Fix typo. · 83f9fe44
      Michael Albinus authored
    • Michael Albinus's avatar
      ; * etc/NEWS: Fix typos. · c7c9919d
      Michael Albinus authored
    • Tino Calancha's avatar
      Fix shell-command-dont-erase-buffer feature · 2eb0b783
      Tino Calancha authored
      * lisp/simple.el (shell-command-dont-erase-buffer):
      The default, nil, is backward compatible, i.e. it erases the buffer
      only if the output buffer is not the current one; the new value 'erase
      always erases the output buffer.
      Update docstring.
      Add optional arg output-to-current-buffer.
      Rename it so that it's not internal.  All callers updated.
      (shell-command-set-point-after-cmd): Rename it so that it's not internal.
      All callers updated.
      Adjust it to cover a side case.
      (shell-command): Adjust logic to match the specification (Bug#39067).
      Enable the feature when the output buffer is the current one.
      (shell-command-on-region): Little tweak to follow
      `shell-command-dont-erase-buffer' specification.
      * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):
      Add helper macro.
      (simple-tests-shell-command-dont-erase-buffer): Add tests.
      * doc/emacs/misc.texi (Single Shell): Update manual.
      * etc/NEWS (Single shell commands): Announce the change.
  23. 17 Jan, 2020 5 commits
    • Paul Eggert's avatar
      ; spelling fixes · 2391d3f4
      Paul Eggert authored
    • Alan Mackenzie's avatar
      Introduce element &error into edebug specification lists for macros · 8d2fecdf
      Alan Mackenzie authored
      This fixes bug #37540.
      * lisp/emacs-lisp/edebug.el (top level): New entry for &error in alist used to
      associate elements with their handling functions.
      (edebug-match-&error): New function.
      (nested-backquote-form): Use the new element &error to abort instrumentation
      on encountering a three deep nesting of backquotes (without intervening
      * doc/lispref/edebug.texi (Specification List): Add an entry for &error.
      * etc/NEWS: Add an entry for &error.
    • Dmitry Gutov's avatar
      Honor tags-case-fold-search during xref identifer completion · e898442b
      Dmitry Gutov authored
      * etc/NEWS: New entry.
      * lisp/progmodes/etags.el (tags-case-fold-search):
      Mark as safe-local.
      Extract from tags-completion-at-point-function, find-tag-tag and
      New method. Use it here as well.
      * lisp/progmodes/xref.el
      (xref-backend-identifier-completion-ignore-case): New generic.
      (xref--read-identifier): Use it here.
    • Eli Zaretskii's avatar
    • Stefan Kangas's avatar
      Make sb-image.el obsolete (Bug#37837) · 6dbe2c93
      Stefan Kangas authored
      * lisp/sb-image.el: Move from here...
      * lisp/obsolete/sb-image.el: ...to here.
      * lisp/speedbar.el (ezimage): Require instead of 'sb-image'.
      (speedbar-use-images, speedbar-expand-image-button-alist)
      (speedbar-insert-image-button-maybe, speedbar-image-dump): Move
      here from 'sb-image.el'.
  24. 16 Jan, 2020 1 commit