From abf0f8666d92135a9d5f367c3b241496f370b8c0 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 28 Jan 2020 02:11:59 +0200 Subject: [PATCH] * lisp/wdired.el: Clean out isearch-filter-predicate (bug#37496) * 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/wdired.el b/lisp/wdired.el index d470e0a21b0..d91853e64dd 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el @@ -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) -- 2.39.2