From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: buffer for unopened file? Date: Fri, 19 Oct 2007 11:20:03 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192818433 18547 80.91.229.12 (19 Oct 2007 18:27:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2007 18:27:13 +0000 (UTC) To: "David L" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 20:27:12 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 1IiwYt-0002sx-OO for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 20:27:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiwYd-0003fK-Jb for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 14:26:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiwYQ-0003ev-4q for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 14:26:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiwY9-0003dN-Lk for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 14:26:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiwY9-0003dK-Hb for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 14:26:21 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IiwY8-00049E-2G for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 14:26:21 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l9JIKtWQ014858; Fri, 19 Oct 2007 13:20:56 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l9JEkBPS021566; Fri, 19 Oct 2007 12:20:55 -0600 Original-Received: from dhcp-amer-csvpn-gw1-141-144-64-153.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3306614191192818001; Fri, 19 Oct 2007 11:20:01 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:48589 Archived-At: > The use case is that I have a makefile that > generates dependencies for an application > and those dependencies are scattered around > a directory tree with other files that aren't > dependencies. When I'm working on the source > code, I sometimes want to open a file that I know > starts with xyz, but I don't know its directory or > what it ends with. It would be nice to use buffer > name completion to find the file. What I do today > is a tags search for something I know is in that > file, but sometimes I can't think of exactly what's > in it. If I could just type C-x b xyz and see > a list of all of the (pseudo)buffers that begin > with xyz or search my ECB alphabetized > buffer list for the file, that would be great. Sebastian's reply was probably more helpful than mine, in that case. However, I'd suggest you take a look at Emacs Wiki. There are several libraries that provide something close to what you are requesting, if Sebastian's suggestion doesn't do it for you 100%. There are libraries that let you define a named set of files or buffers that you frequently want to visit, search, etc. Icicles, filename-cache, and bs.el come to mind, but there are others. FYI, in Icicles: * You can save a buffer configuration (list of buffers etc.) persistently. * You can save a list of regions (in multiple buffers) persistently. * You can create a custom list of completion candidates (file names, buffer names, whatever), save that persistently, and reuse it later (for completion). * You can save a set of file-name candidates persistently, and later open Dired for just those files. All of those work with completion, including substring and regexp completion. Some Icicles links that might help here: http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Candidate_Sets http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Persistent_Completions http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Multiple_Regions http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Search_Commands%2c_Overview