From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: Re: How to search all open buffers? Date: Thu, 30 Aug 2007 16:46:27 +0000 (UTC) Organization: none Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1188495641 18641 80.91.229.12 (30 Aug 2007 17:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2007 17:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 30 19:40:39 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 1IQo0V-00009Q-69 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 19:40:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQo0U-0004Pg-Tu for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 13:40:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1188492387 26302 166.84.1.3 (30 Aug 2007 16:46:27 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 30 Aug 2007 16:46:27 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:151462 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:46985 Archived-At: In Eli Zaretskii 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.