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: Dired like functionality on a custom text file Date: Mon, 19 May 2008 13:38:46 -0700 Message-ID: <007201c8b9f0$5679c690$c2b22382@us.oracle.com> References: <683a41e6-1009-4c2e-9354-b748c6f7ad95@t12g2000prg.googlegroups.com> <6db01013-2953-4c52-b053-a6767caa035e@d77g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211229727 4910 80.91.229.12 (19 May 2008 20:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2008 20:42:07 +0000 (UTC) To: "'harven'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 19 22:42:44 2008 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 1JyCAg-0007vr-FA for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2008 22:41:26 +0200 Original-Received: from localhost ([127.0.0.1]:43046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyC9w-0001Xm-DF for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2008 16:40:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JyC9f-0001Vx-Fg for help-gnu-emacs@gnu.org; Mon, 19 May 2008 16:40:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyC9e-0001V1-0k for help-gnu-emacs@gnu.org; Mon, 19 May 2008 16:40:23 -0400 Original-Received: from [199.232.76.173] (port=42892 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyC9d-0001Uy-Tn for help-gnu-emacs@gnu.org; Mon, 19 May 2008 16:40:21 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:30233) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JyC9d-0000El-80 for help-gnu-emacs@gnu.org; Mon, 19 May 2008 16:40:21 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m4JKeEV0019046; Mon, 19 May 2008 15:40:14 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m4J07mrx026673; Mon, 19 May 2008 14:40:14 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3674823481211229525; Mon, 19 May 2008 13:38:45 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 19 May 2008 13:38:45 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <6db01013-2953-4c52-b053-a6767caa035e@d77g2000hsb.googlegroups.com> Thread-Index: Aci56JE4Ojf77vm9QxSIzUOzYez4HgABtxrw 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:54138 Archived-At: > > I have a situation where I have a lot of common files i need to edit > > but they are all in various directories spread across my hard drive. > > I was trying to come up with a way where I could make a > > text file that has all the paths to the files I commonly need and > > somehow open that file into a dired like mode. Is there anyway I > > can do this, or even alternatively possibly easily pass the current > > line my cursor is on in that file to the mini buffer when I put in > > the visit command? > > M-x find-name-dired prompts for the name of a directory > and a filename wildcard, and fetch in a Dired buffer all > files in the subdirectories matching the wildcard. > > M-x find-grep-dired fetches files which contain strings matching a > regular expression, recursively starting from a given directory. > > Finally, dired-x is an extension to dired which provides a feature > called "Virtual Dired". This feature puts a buffer with Dired-like > contents in Dired mode. Have a look at the dired-x manual (C-h i m > dired-x), which comes with a basic emacs install. You need first to > enable dired-x with something like > (add-hook 'dired-load-hook (lambda () > (load "dired-x"))) Here's another approach you might want to consider: 1. Choose the files and subdirectories you want to access together. This is a one-time operation, but you can modify the list later if you want. 2. Use that set of files and directories as completion candidates for file operations. You can do this with Icicles. See, for instance: http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Support_for_Projects There are links on that page for how to use such a defined set of files to do various things, such as find and replace.