diff options
author | Leo Liu <sdl.web@gmail.com> | 2016-04-30 23:35:27 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2016-04-30 23:36:47 +0800 |
commit | b755d988b498b19bd9a70a5dd8c6597ceb14a372 (patch) | |
tree | 1ea95215515a26f5689a778eff3d115028ba294f /lisp/isearch.el | |
parent | b52ebd4f20ecc3f207a88cf7ac18c745b6e8ef80 (diff) | |
download | emacs-b755d988b498b19bd9a70a5dd8c6597ceb14a372.tar.gz |
Autoload cursor-sensor-inhibit (bug#23406)
* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-inhibit): Autoload.
* lisp/isearch.el (isearch-update): Remove boundp check.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r-- | lisp/isearch.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 48354d39d48..17b5ef14cb6 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -840,7 +840,6 @@ See the command `isearch-forward-symbol' for more information." (isearch-update))))) -(defvar cursor-sensor-inhibit) ;; isearch-mode only sets up incremental search for the minor mode. ;; All the work is done by the isearch-mode commands. @@ -973,8 +972,7 @@ The last thing is to trigger a new round of lazy highlighting." (setq cursor-sensor-inhibit (delq 'isearch cursor-sensor-inhibit)))) (setq isearch--current-buffer (current-buffer)) (make-local-variable 'cursor-sensor-inhibit) - (unless (boundp 'cursor-sensor-inhibit) - (setq cursor-sensor-inhibit nil)) + (setq cursor-sensor-inhibit nil) ;; Suspend things like cursor-intangible during Isearch so we can search ;; even within intangible text. (push 'isearch cursor-sensor-inhibit)) |