]> git.eshelyaron.com Git - emacs.git/commit
Tweak dired warning about "wildcard" characters
authorKévin Le Gouguec <kevin.legouguec@gmail.com>
Sun, 20 Sep 2020 12:16:19 +0000 (14:16 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 20 Sep 2020 12:16:19 +0000 (14:16 +0200)
commitf8d8d28bc67cc69efd9a5d9d9bf3aba43219e0e3
tree092f2c14bba25b753b7133a9d8f0013d52944596
parent163ff19cf3cd32bc3c50da56a587976121e3f1d2
Tweak dired warning about "wildcard" characters

* lisp/dired-aux.el (dired-isolated-string-re): Use explicitly
numbered groups.
(dired--star-or-qmark-p): Add START parameter.  Make sure to
return the first isolated match.
(dired--need-confirm-positions, dired--mark-positions)
(dired--highlight-no-subst-chars, dired--no-subst-explain)
(dired--no-subst-ask, dired--no-subst-confirm): New functions.
(dired-do-shell-command): Use them (bug#28969, bug#35564).

* test/lisp/dired-aux-tests.el (dired-test-bug27496): Adapt to
new prompt.
(dired-test--check-highlighting): New test helper.
(dired-test-highlight-metachar): New tests.
lisp/dired-aux.el
test/lisp/dired-aux-tests.el