summaryrefslogtreecommitdiff
path: root/lisp/isearch-multi.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2007-10-26 09:56:27 +0000
committerRichard M. Stallman <rms@gnu.org>2007-10-26 09:56:27 +0000
commit9097e8af9ba17607c3c2253c18c0169fa55a916d (patch)
treebc8f7b62f04b9b7ffbd4486aa673a7d7d4f57e1e /lisp/isearch-multi.el
parent5ca7d652e53b27b17b040f9c159d85b36c703501 (diff)
downloademacs-9097e8af9ba17607c3c2253c18c0169fa55a916d.tar.gz
emacs-9097e8af9ba17607c3c2253c18c0169fa55a916d.tar.bz2
emacs-9097e8af9ba17607c3c2253c18c0169fa55a916d.zip
(isearch-buffers-multi): New option.
(isearch-buffers-search-fun): Test it.
Diffstat (limited to 'lisp/isearch-multi.el')
-rw-r--r--lisp/isearch-multi.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/isearch-multi.el b/lisp/isearch-multi.el
index cd5307b145a..acd456815a0 100644
--- a/lisp/isearch-multi.el
+++ b/lisp/isearch-multi.el
@@ -37,6 +37,12 @@
:version "23.1"
:group 'isearch)
+(defcustom isearch-buffers-multi t
+ "Non-nil enables searching multiple related buffers, in certain modes."
+ :type 'boolean
+ :version "23.1"
+ :group 'isearch-buffers)
+
(defcustom isearch-buffers-pause t
"A choice defining where to pause the search.
If the value is nil, don't pause before going to the next buffer.
@@ -121,7 +127,7 @@ Intended to be added to `isearch-mode-hook'."
;; successively, and search the string in them. Do this only
;; when bound is nil (i.e. not while lazy-highlighting search
;; strings in the current buffer).
- (unless bound
+ (when (and (not bound) isearch-buffers-multi)
;; If no-pause or there was one attempt to leave the current buffer
(if (or (null isearch-buffers-pause)
(and isearch-buffers-pause isearch-buffers-current-buffer))