]> git.eshelyaron.com Git - emacs.git/commit
New user option 'shell-command-guess-functions' (bug#18132)
authorJuri Linkov <juri@linkov.net>
Mon, 27 Nov 2023 17:32:10 +0000 (19:32 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 27 Nov 2023 17:32:10 +0000 (19:32 +0200)
commitb8d4242e8bdbdb6ca364bf0760e50689f6a6e118
tree5c00bf3cab3553a23e8148d33f7f4a976aa8aee6
parentd15084c822e6815dde348dd0dd8175b9694f9f12
New user option 'shell-command-guess-functions' (bug#18132)

* lisp/dired-aux.el (dired-minibuffer-default-add-shell-commands):
Remove function since now mailcap commands are available
by shell-command-guess-mailcap for shell-command-guess
used by dired-guess-shell-command.
(dired-read-shell-command): Don't set minibuffer-default-add-function
to dired-minibuffer-default-add-shell-commands.
(dired-guess-shell-command): Replace dired-guess-default
with shell-command-guess.
(shell-command-guess-functions): New defcustom.
(shell-command-guess, shell-command-guess-dired)
(shell-command-guess-mailcap, shell-command-guess-xdg):
New functions.

* lisp/simple.el (minibuffer-default-add-shell-commands):
Use 'shell-command-guess' instead of requiring 'mailcap'
with 'mailcap-file-default-commands'.  Remove 'interactive'.
etc/NEWS
lisp/dired-aux.el
lisp/simple.el