Autoload cursor-sensor-inhibit (bug#23406)
* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-inhibit): Autoload. * lisp/isearch.el (isearch-update): Remove boundp check.
This commit is contained in:
parent
b52ebd4f20
commit
b755d988b4
2 changed files with 2 additions and 3 deletions
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defvar cursor-sensor-inhibit nil)
|
(defvar cursor-sensor-inhibit nil)
|
||||||
|
|
||||||
(defun cursor-sensor--intangible-p (pos)
|
(defun cursor-sensor--intangible-p (pos)
|
||||||
|
|
|
@ -840,7 +840,6 @@ See the command `isearch-forward-symbol' for more information."
|
||||||
(isearch-update)))))
|
(isearch-update)))))
|
||||||
|
|
||||||
|
|
||||||
(defvar cursor-sensor-inhibit)
|
|
||||||
;; isearch-mode only sets up incremental search for the minor mode.
|
;; isearch-mode only sets up incremental search for the minor mode.
|
||||||
;; All the work is done by the isearch-mode commands.
|
;; 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 cursor-sensor-inhibit (delq 'isearch cursor-sensor-inhibit))))
|
||||||
(setq isearch--current-buffer (current-buffer))
|
(setq isearch--current-buffer (current-buffer))
|
||||||
(make-local-variable 'cursor-sensor-inhibit)
|
(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
|
;; Suspend things like cursor-intangible during Isearch so we can search
|
||||||
;; even within intangible text.
|
;; even within intangible text.
|
||||||
(push 'isearch cursor-sensor-inhibit))
|
(push 'isearch cursor-sensor-inhibit))
|
||||||
|
|
Loading…
Add table
Reference in a new issue