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: Fri, 12 Oct 2007 02:48:35 +0300 Organization: JURTA Message-ID: <87odf52s7k.fsf@jurta.org> References: <87odfcggvl.fsf@jurta.org> <87myut77c2.fsf@jurta.org> <873awlidih.fsf@offby1.atm01.sea.blarg.net> <871wc51any.fsf@jurta.org> <878x6a6ktw.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 1192148615 4367 80.91.229.12 (12 Oct 2007 00:23:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2007 00:23:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 12 02:23:24 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 1Ig8J9-0001Hp-PL for ged-emacs-devel@m.gmane.org; Fri, 12 Oct 2007 02:23:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ig8J3-00053z-CW for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 20:23:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ig8Hy-0004Lr-6p for emacs-devel@gnu.org; Thu, 11 Oct 2007 20:22:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ig8Hw-0004L6-WD for emacs-devel@gnu.org; Thu, 11 Oct 2007 20:22:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ig8Hw-0004Kz-Qx for emacs-devel@gnu.org; Thu, 11 Oct 2007 20:22:00 -0400 Original-Received: from mailman.kiev.sovam.com ([89.162.150.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ig8Hw-0005en-BE for emacs-devel@gnu.org; Thu, 11 Oct 2007 20:22:00 -0400 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]) by mailman.kiev.sovam.com with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IgB53-0004Yu-P4; Fri, 12 Oct 2007 03:20:53 +0000 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1Ig8Ho-000Amj-1v; Fri, 12 Oct 2007 03:21:52 +0300 In-Reply-To: (Stefan Monnier's message of "Thu\, 11 Oct 2007 10\:14\:26 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Scanner-Signature: 88f972a75cd389d721acc69b695bb680 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 1587 [Oct 11 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Info: {TO: local part of email appears in body} X-SpamTest-Method: none X-SpamTest-Rate: 35 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: by monty-python.gnu.org: 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:80668 Archived-At: >> Perhaps, we should add a new user option with 3 possible values: >> 1. don't stop in the initial buffer >> 2. stop once in the initial buffer >> 3. stop in every next buffer > > I think the two behaviors are quite different conceptually: if we switch to > another buffer without requiring an additional C-s, we're giving the > illusion that all the files are really just a single file, whereas otherwise > we're just making it easier to search through several files. Making the multi-buffer search space continuous is more preferable when the goal is to find the string no matter in what buffer it is located. > Both are attractive. The first option is pretty powerful: you can use it as > an alternative to C-x b (e.g. if you set > isearch-buffers-next-buffer-function to cycle through all the files in your > project, for example). Hmm, I did not think of this feature as a way of switching buffers. This is an interesting POV: switching by content instead of buffer names. -- Juri Linkov http://www.jurta.org/emacs/