From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: isearch multiple buffers Date: Mon, 08 Oct 2007 22:18:18 +0300 Organization: JURTA Message-ID: <87myut77c2.fsf@jurta.org> References: <87odfcggvl.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191871455 12557 80.91.229.12 (8 Oct 2007 19:24:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2007 19:24:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 08 21:24:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IeyD1-0004Ci-Qr for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2007 21:24:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeyCw-0002oh-Ix for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2007 15:24:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IeyB2-0000ZV-Iu for emacs-devel@gnu.org; Mon, 08 Oct 2007 15:22:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IeyB1-0000YE-K9 for emacs-devel@gnu.org; Mon, 08 Oct 2007 15:22:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeyB1-0000Y0-Eg for emacs-devel@gnu.org; Mon, 08 Oct 2007 15:22:03 -0400 Original-Received: from gnome.kiev.sovam.com ([212.109.32.24]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IeyAv-0001VZ-IN; Mon, 08 Oct 2007 15:21:58 -0400 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]) by gnome.kiev.sovam.com with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IeyAn-0006lg-8D; Mon, 08 Oct 2007 22:21:49 +0300 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1IeyAm-000DZ7-Dk; Mon, 08 Oct 2007 22:21:49 +0300 In-Reply-To: (Richard Stallman's message of "Mon\, 08 Oct 2007 14\:03\:21 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Scanner-Signature: 8fcfa5a562f326ba64a474cd1db6e25e X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1570 [Oct 08 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 25 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-Detected-Kernel: FreeBSD 6.x (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80424 Archived-At: > I am not sure I understand the code in that patch, but it looks like > isearch-buffers-search-fun will search all the buffers without a > pause. Is that right? > > I don't think that is the right UI for this feature. I think the > search should fail when it can't find another occurrence in the > current buffer. Then if you type C-s again it should go to the next > buffer which has an occurrence, and search there. The patch I proposed implements exactly the same behavior as you described. > The documentation of `isearch-buffers-next-buffer-function' should > clearly state what it means to search multiple buffers. (defvar isearch-buffers-next-buffer-function nil "Function to call to get the next buffer to search. When this variable is set to a function that returns a buffer, then after typing another C-s or C-r at a failing search, the search goes to the next buffer in the series and continues searching for the next occurrence. The first argument of this function is the current buffer where the search is currently searching. It defines the base buffer relative to which this function should find the next buffer. When the isearch direction is backward (when isearch-forward is nil), this function should return the previous buffer to search. If the second argument of this function WRAP is non-nil, then it should return the first buffer in the series; and for the backward search, it should return the last buffer in the series.") > + "The buffer where the search currently stays. > > The word "stays" is not used in this way in English. (defvar isearch-buffers-current-buffer nil "The buffer where the search is currently searching. The value is nil when the search still is in the initial buffer.") -- Juri Linkov http://www.jurta.org/emacs/