GNU bug report logs -
#73018
31.0.50; wdired + replace-regexp only modifies the visible portion of the buffer
Previous Next
Reported by: Madhu <enometh <at> meer.net>
Date: Wed, 4 Sep 2024 02:38:01 UTC
Severity: normal
Found in version 31.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> 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?
This bug report was last modified 294 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.