From: Stefan Monnier Date: Fri, 7 Oct 2022 18:07:17 +0000 (-0400) Subject: * lisp/isearch.el (isearch-search): Don't bind `inhibit-point-motion-hooks` X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2055^2~708 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e3824f0a3189d0902d64a70ae9c82ff1240aed5f;p=emacs.git * lisp/isearch.el (isearch-search): Don't bind `inhibit-point-motion-hooks` The let-binding was added back in 1997 (commit 79c7a4fa5f974a9d3b) "because we might have to search inside invisible and intangible text". So it's been redundant since Emacs-25 changed the default to t. --- diff --git a/lisp/isearch.el b/lisp/isearch.el index 3e840b014fc..bc3697deb0a 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -3649,8 +3649,7 @@ Optional third argument, if t, means if fail just return nil (no error). (setq isearch-case-fold-search (isearch-no-upper-case-p isearch-string isearch-regexp))) (condition-case lossage - (let ((inhibit-point-motion-hooks isearch-invisible) - (inhibit-quit nil) + (let ((inhibit-quit nil) (case-fold-search isearch-case-fold-search) (search-invisible isearch-invisible) (retry t))