> 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?



  • bug#73018:... Madhu
  • bug#73018:... Juri Linkov
    • bug#7... Bug reports for GNU Emacs, the Swiss army knife of text editors
      • b... Madhu
      • b... Juri Linkov
        • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
            • ... Juri Linkov
            • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
            • ... Juri Linkov
            • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
            • ... Juri Linkov
            • ... Juri Linkov
            • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
            • ... Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply via email to