mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(isearch-mode): Use add-hook for mouse-leave-buffer-hook.
(isearch-done): Use remove-hook.
This commit is contained in:
parent
4b5406e4cb
commit
bfe2d334fd
1 changed files with 2 additions and 2 deletions
|
|
@ -475,7 +475,7 @@ is treated as a regexp. See \\[isearch-forward] for more info."
|
|||
(isearch-update)
|
||||
(run-hooks 'isearch-mode-hook)
|
||||
|
||||
(setq mouse-leave-buffer-hook '(isearch-done))
|
||||
(add-hook 'mouse-leave-buffer-hook 'isearch-done)
|
||||
|
||||
;; isearch-mode can be made modal (in the sense of not returning to
|
||||
;; the calling function until searching is completed) by entering
|
||||
|
|
@ -525,7 +525,7 @@ is treated as a regexp. See \\[isearch-forward] for more info."
|
|||
)
|
||||
|
||||
(defun isearch-done (&optional nopush edit)
|
||||
(setq mouse-leave-buffer-hook nil)
|
||||
(remove-hook 'mouse-leave-buffer-hook 'isearch-done)
|
||||
;; Called by all commands that terminate isearch-mode.
|
||||
;; If NOPUSH is non-nil, we don't push the string on the search ring.
|
||||
(setq overriding-terminal-local-map nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue