* lisp/isearch.el (isearch-mode, isearch-done): Don't set arg LOCAL
in add-hook and remove-hook for multi-buffer search. * doc/lispref/searching.texi (Search and Replace): Fix `unread-command-events' and add ref. Fixes: debbugs:16035
This commit is contained in:
parent
5df474aaa9
commit
c085e5b909
4 changed files with 15 additions and 6 deletions
|
@ -912,8 +912,8 @@ convert the search string to a regexp used by regexp search functions."
|
|||
|
||||
(isearch-update)
|
||||
|
||||
(add-hook 'pre-command-hook 'isearch-pre-command-hook nil t)
|
||||
(add-hook 'post-command-hook 'isearch-post-command-hook nil t)
|
||||
(add-hook 'pre-command-hook 'isearch-pre-command-hook)
|
||||
(add-hook 'post-command-hook 'isearch-post-command-hook)
|
||||
(add-hook 'mouse-leave-buffer-hook 'isearch-done)
|
||||
(add-hook 'kbd-macro-termination-hook 'isearch-done)
|
||||
|
||||
|
@ -992,8 +992,8 @@ NOPUSH is t and EDIT is t."
|
|||
(unless (equal (car command-history) command)
|
||||
(setq command-history (cons command command-history)))))
|
||||
|
||||
(remove-hook 'pre-command-hook 'isearch-pre-command-hook t)
|
||||
(remove-hook 'post-command-hook 'isearch-post-command-hook t)
|
||||
(remove-hook 'pre-command-hook 'isearch-pre-command-hook)
|
||||
(remove-hook 'post-command-hook 'isearch-post-command-hook)
|
||||
(remove-hook 'mouse-leave-buffer-hook 'isearch-done)
|
||||
(remove-hook 'kbd-macro-termination-hook 'isearch-done)
|
||||
(setq isearch-lazy-highlight-start nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue