From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: Dired like functionality on a custom text file Date: Mon, 19 May 2008 12:26:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6db01013-2953-4c52-b053-a6767caa035e@d77g2000hsb.googlegroups.com> References: <683a41e6-1009-4c2e-9354-b748c6f7ad95@t12g2000prg.googlegroups.com> 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 1211226185 23513 80.91.229.12 (19 May 2008 19:43:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2008 19:43:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 19 21:43:42 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 1JyBGX-0007sR-F6 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2008 21:43:25 +0200 Original-Received: from localhost ([127.0.0.1]:49421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyBFn-0005Yq-JF for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2008 15:42:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d77g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: posting.google.com 1211225204 12993 127.0.0.1 (19 May 2008 19:26:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 19 May 2008 19:26:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d77g2000hsb.googlegroups.com; posting-host=82.240.200.149; posting-account=hanW0AoAAADuR-PIr5jGeb298Y3jGR7p User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:158775 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:54137 Archived-At: On May 19, 8:38 pm, Jesse wrote: > 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")))