]> git.eshelyaron.com Git - emacs.git/commitdiff
Update args of isearch-search-fun-in-text-property (bug#14013)
authorJuri Linkov <juri@linkov.net>
Wed, 15 Jun 2022 07:32:09 +0000 (10:32 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 15 Jun 2022 07:32:09 +0000 (10:32 +0300)
* lisp/isearch.el (isearch-search-fun-in-text-property): Swap signature args.
* lisp/dired-aux.el (dired-isearch-search-filenames): Update the call.

lisp/dired-aux.el
lisp/isearch.el

index d16aee0fa86866dee9267f67dfaae68e389a9553..1b7088104d74e240ba4c7ff0c5432c63bb5f75c5 100644 (file)
@@ -3208,7 +3208,7 @@ Intended to be added to `isearch-mode-hook'."
 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 ()
index 91aaa66a5b5f5409568661839939c95b28c8c93a..7650ebcfcea20116d335b05c014a38a93127879f 100644 (file)
@@ -4455,12 +4455,12 @@ LAX-WHITESPACE: The value of `isearch-lax-whitespace' and
         (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.