# HG changeset patch # User Richard M. Stallman # Date 1193392459 0 # Node ID 4516d805659c8fd789531c308c6838170db49049 # Parent 2a7d60a28bcfc1631afede1a2ea6083d6fc13c96 (isearch-buffers-multi): New option. (isearch-buffers-search-fun): Test it. diff -r 2a7d60a28bcf -r 4516d805659c lisp/isearch-multi.el --- a/lisp/isearch-multi.el Fri Oct 26 09:53:14 2007 +0000 +++ b/lisp/isearch-multi.el Fri Oct 26 09:54:19 2007 +0000 @@ -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 @@ ;; 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))