help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to search all open buffers?


From: kj
Subject: Re: How to search all open buffers?
Date: Thu, 30 Aug 2007 16:46:27 +0000 (UTC)
User-agent: nn/6.7.3

In <mailman.5468.1188330586.32220.help-gnu-emacs@gnu.org> Eli Zaretskii 
<eliz@gnu.org> writes:

>Can you explain why you would need such a command?  Perhaps there's a
>more convenient solution for the problem you tried to solve with the
>missing search-all-buffers command.

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.  The nature of this string or regex varies: most commonly
it's the name of a variable or function, but it could be the regex
'sub [a-z_]+foo[a-z_]+' in a Perl file, or a the string 'cf.' that
I remember using in a comment, or some nifty idiom that matches
'select (.*\]', etc.

I agree that it would be annoying to have the search waste any time
on *info*, *scratch*, etc.  But if the search is restricted to
file-visiting buffers, I think it would be extremely useful.

(I remember using etags years ago, but found it extremely cumbersome,
and useful only in a fraction of the situations for which I needed
this type of global search.)

kj

-- 
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]