]> git.eshelyaron.com Git - emacs.git/commit
Extend dired-do-shell-command substitutions
authorTino Calancha <tino.calancha@gmail.com>
Sun, 2 Jul 2017 13:09:02 +0000 (22:09 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Sun, 2 Jul 2017 13:09:02 +0000 (22:09 +0900)
commita8b71b3dc53883a2dcb3339bf4c7e1232c42d276
treefd9972fc07854be2f6e26f10e4d51b94ffc5381e
parent80e200c0a08805771d1c709546d79088be188021
Extend dired-do-shell-command substitutions

Substitute "`?`" inside command with the current file name.
See details in:
https://lists.gnu.org/archive/html/emacs-devel/2017-06/msg00618.html
* lisp/dired-aux.el (dired-quark-subst-regexp, dired-star-subst-regexp):
Mark as obsolete.
(dired-isolated-string-re): New defun.
(dired--star-or-qmark-p): New predicate.
(dired-do-shell-command): Use dired--star-or-qmark-p.  Substitute "`?`"
with the current file name.
* doc/emacs/dired.texi (Shell Commands in Dired): Update manual.
; * etc/NEWS: Mention it.
doc/emacs/dired.texi
etc/NEWS
lisp/dired-aux.el