Juri Linkov <j...@linkov.net> writes:

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

Right - this is the wrong place to add it.

The idea was to make the search function itself know that it has to care
about font-locking.  We could still save the information in the function
by using an oclosure, though.

Michael.



  • 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