From c5ef8c8db7d8b2ab03998a0f3f2a1b820ff24e2a Mon Sep 17 00:00:00 2001 From: Michael Heerdegen Date: Mon, 9 Sep 2024 16:46:13 +0200 Subject: [PATCH] WIP: Bug#73018 --- lisp/dired-aux.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index d79ec342435..77dde7147bc 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -3740,8 +3740,12 @@ dired-isearch-search-filenames 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 dired-symlink-filename))) + (let ((search-fun + (isearch-search-fun-in-text-property + (funcall orig-fun) '(dired-filename dired-symlink-filename)))) + (lambda (&rest args) + (font-lock-ensure) + (apply search-fun args)))) ;;;###autoload (defun dired-isearch-filenames () -- 2.39.2