> Would something like this be good? > > @@ -3740,8 +3740,12 @@ dired-isearch-search-filenames > - (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))))
This will call 'font-lock-ensure' for every search hit? Wouldn't it be better to call 'font-lock-ensure' only once at the beginning of the search? > A related question is whether everybody always wants to search in > symlink targets when isearching file names in dired... I don't. Would > it be worth to add an option for that? Currently the properties are > just hardcoded. > > Then, in the above patch we could make the `font-lock-ensure' call > depend on the value of that option. Maybe not an option, but just a simple variable?