* lisp/isearch.el (isearch-mode, isearch-done): Don't set arg LOCAL
authorJuri Linkov <juri@jurta.org>
Wed, 4 Dec 2013 00:12:02 +0000 (02:12 +0200)
committerJuri Linkov <juri@jurta.org>
Wed, 4 Dec 2013 00:12:02 +0000 (02:12 +0200)
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

doc/lispref/ChangeLog
doc/lispref/searching.texi
lisp/ChangeLog
lisp/isearch.el

index 92335dc..f4f036f 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-04  Juri Linkov  <juri@jurta.org>
+
+       * searching.texi (Search and Replace): Fix `unread-command-events'
+       and add ref.
+
 2013-12-03  Juri Linkov  <juri@jurta.org>
 
        * windows.texi (Choosing Window): Rename `no-display-ok' to
index 15aa23f..a5bd5ab 100644 (file)
@@ -1770,10 +1770,9 @@ Do not take action for this question---in other words, ``no''.
 Answer this question ``no'', and give up on the entire series of
 questions, assuming that the answers will be ``no''.
 
-@c FIXME: Document ‘unread-comment-events’?  --xfq
 @item exit-prefix
 Like @code{exit}, but add the key that was pressed to
-@code{unread-comment-events}.
+@code{unread-command-events} (@pxref{Event Input Misc}).
 
 @item act-and-exit
 Answer this question ``yes'', and give up on the entire series of
index 0c5db95..530a701 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-04  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-mode, isearch-done): Don't set arg LOCAL in
+       add-hook and remove-hook for multi-buffer search.  (Bug#16035)
+
 2013-12-03  Tom Regner <tom@goochesa.de>  (tiny change)
 
        * notifications.el (notifications-close-notification): Call the
index 3abb03a..aee2f4f 100644 (file)
@@ -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)