GNU bug report logs -
#14013
24.3.50; dired-isearch-filenames-regexp is matching text outside filenames
Previous Next
Reported by: michael_heerdegen <at> web.de
Date: Wed, 20 Mar 2013 23:42:01 UTC
Severity: normal
Tags: patch
Merged with 29215
Found in versions 24.3.50, 26.0
Fixed in version 29.0.50
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
Message #191 received at 14013 <at> debbugs.gnu.org (full text, mbox):
> I generalized dired-isearch-search-filenames to a new function
> that can search in any text property, so e.g. after evaluating
>
> (setq-local isearch-search-fun-function
> (lambda () (isearch-search-fun-in-text-property 'face)))
>
> isearch will match .* in all fontified chunks, etc.
I'm sure later someone might want to add more args such as e.g.
text-property-search-forward has PROPERTY &optional VALUE PREDICATE ...
So better to change the signature in anticipation of adding more
args after PROPERTY:
diff --git a/lisp/isearch.el b/lisp/isearch.el
-(defun isearch-search-fun-in-text-property (property &optional search-fun)
+(defun isearch-search-fun-in-text-property (search-fun property)
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
@@ -3208,7 +3208,7 @@ dired-isearch-search-filenames
- (isearch-search-fun-in-text-property 'dired-filename (funcall orig-fun)))
+ (isearch-search-fun-in-text-property (funcall orig-fun) 'dired-filename))
This bug report was last modified 1 year and 352 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.