The returned function narrows the search to match the search string
only as part of a file name enclosed by the text property `dired-filename'.
It's intended to override the default search function."
- (isearch-search-fun-in-text-property 'dired-filename (funcall orig-fun)))
+ (isearch-search-fun-in-text-property (funcall orig-fun) 'dired-filename))
;;;###autoload
(defun dired-isearch-filenames ()
(funcall after-change nil nil nil)))))
\f
-(defun isearch-search-fun-in-text-property (property &optional search-fun)
+(defun isearch-search-fun-in-text-property (search-fun property)
"Return the function to search inside text that has the specified PROPERTY.
The function will limit the search for matches only inside text which has
this property in the current buffer.
-Optional argument SEARCH-FUN provides the function to search text, and
-defaults to the value of `isearch-search-fun-default'."
+The argument SEARCH-FUN provides the function to search text, and
+defaults to the value of `isearch-search-fun-default' when nil."
(lambda (string &optional bound noerror count)
(let* ((old (point))
;; Check if point is already on the property.