From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to search all open buffers? Date: Fri, 31 Aug 2007 11:40:35 +0300 Message-ID: References: <87odgosmcf.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1188549699 3784 80.91.229.12 (31 Aug 2007 08:41:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 08:41:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 10:41:38 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IR24J-0006Ef-Py for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 10:41:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IR24J-0006ZQ-7y for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 04:41:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IR23r-0006Uu-LM for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 04:41:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IR23q-0006U4-M6 for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 04:41:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IR23q-0006Ts-Bt for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 04:41:02 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IR23p-0004XN-Rd for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 04:41:02 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-237-140.inter.net.il [83.130.237.140]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id DMS29282 (AUTH halo1); Fri, 31 Aug 2007 11:40:35 +0300 (IDT) In-reply-to: <87odgosmcf.fsf@debby.local.net> (message from Dieter Wilhelm on Fri, 31 Aug 2007 00:12:48 +0200) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47012 Archived-At: > Cc: help-gnu-emacs@gnu.org > From: Dieter Wilhelm > Date: Fri, 31 Aug 2007 00:12:48 +0200 > > Eli Zaretskii writes: > > >> From: kj > >> Date: Thu, 30 Aug 2007 16:46:27 +0000 (UTC) > >> > >> I run into this *all* the time: I've been coding for several days, > >> working on 20-30 files simultaneously, and I need to get back to > >> the one among these many buffers that contains a particular string > >> or regex. > > > > Then just search the files for that regex, e.g. with the Dired's `A' > > command. Emacs will notice when a particular file is already in a > > buffer and will search that buffer instead. > > But the A (dired-do-search) key seems to work only for the files which > are present in the current Dired buffer not necessarily for all opened > buffers. I'm assuming that the OP is working on some project, since he said that he wanted to find some function or variable in one of the buffers. Presumably, those buffers all visit files that belong to some project, and if so, they all live in a single directory, or in a single tree under the same parent directory. Thus `A' is appropriate.