|
From: | Juri Linkov |
Subject: | bug#14013: 24.3.50; dired-isearch-filenames-regexp is matching text outside filenames |
Date: | Sat, 23 Mar 2013 02:44:07 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) |
>> - (pos1 (save-excursion (funcall func string bound noerror))) >> + (pos1 (save-excursion >> + (run-hooks 'isearch-search-fun-pre-hook) >> + (funcall func string bound noerror))) > > Doesn't sound good. > >> + (add-hook 'isearch-search-fun-pre-hook >> 'dired-isearch-filenames-pre-hook nil t))) > > Why not (add-function :around (local isearch-search-fun-function) > #'dired--isearch-filenames) This is even better, so Michael could easily try different ideas without applying patches.
[Prev in Thread] | Current Thread | [Next in Thread] |