summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-08-27 22:43:40 +0300
committerJuri Linkov <juri@linkov.net>2022-08-27 22:43:40 +0300
commit0ab49d46ddbe27970c62a56597de000bc1c3232c (patch)
tree460023d68311d8685bff8c426faea5f75eb5e3e0 /lisp/dired-aux.el
parentf427b985a1857523412a846fcaa9082c87c0bbd1 (diff)
downloademacs-0ab49d46ddbe27970c62a56597de000bc1c3232c.tar.gz
emacs-0ab49d46ddbe27970c62a56597de000bc1c3232c.tar.bz2
emacs-0ab49d46ddbe27970c62a56597de000bc1c3232c.zip
Use a list of text properties to search in symlink filenames in Wdired
* lisp/dired-aux.el (dired-isearch-search-filenames): Use text properties 'dired-filename' and 'dired-symlink-filename'. * lisp/dired.el (dired-font-lock-keywords): Add text property 'dired-symlink-filename' on symlinks. * lisp/isearch.el (isearch-search-fun-in-text-property): Support a list of text properties (bug#57293).
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 94b2baf72d0..06f0b86fc43 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -3544,7 +3544,8 @@ Intended to be added to `isearch-mode-hook'."
The returned function narrows the search to match the search string
only as part of a file name enclosed by the text property `dired-filename'.
It's intended to override the default search function."
- (isearch-search-fun-in-text-property (funcall orig-fun) 'dired-filename))
+ (isearch-search-fun-in-text-property
+ (funcall orig-fun) '(dired-filename dired-symlink-filename)))
;;;###autoload
(defun dired-isearch-filenames ()