]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/wdired.el: Clean out isearch-filter-predicate (bug#37496)
authorJuri Linkov <juri@linkov.net>
Tue, 28 Jan 2020 00:11:59 +0000 (02:11 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 28 Jan 2020 00:11:59 +0000 (02:11 +0200)
* lisp/wdired.el (wdired-change-to-dired-mode): Use remove-function to
remove wdired-isearch-filter-read-only (whose value was added in
wdired-change-to-wdired-mode) from local value of isearch-filter-predicate.

lisp/wdired.el

index d470e0a21b076e4a2bebeeced211e07c7c6e23a3..d91853e64dd47352d0495edbe5ab8e8a34a283d6 100644 (file)
@@ -357,6 +357,8 @@ non-nil means return old filename."
     (remove-text-properties
      (point-min) (point-max)
      '(front-sticky nil rear-nonsticky nil read-only nil keymap nil)))
+  (remove-function (local 'isearch-filter-predicate)
+                   #'wdired-isearch-filter-read-only)
   (use-local-map dired-mode-map)
   (force-mode-line-update)
   (setq buffer-read-only t)