From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.help Subject: Re: opening a filename that appears in a buffer? Date: Tue, 20 May 2008 22:01:24 +0200 Message-ID: <87zlqkvj6z.fsf@gmx.de> References: <01bc057a-47b6-4f3c-9685-648babebe7c3@h1g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211316107 26415 80.91.229.12 (20 May 2008 20:41:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2008 20:41:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 22:42:24 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 1JyYen-0001PN-3j for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 22:42:01 +0200 Original-Received: from localhost ([127.0.0.1]:42484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyYe3-0005DF-1z for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 16:41:15 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.banetele.no!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: p54864bcd.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1211313868 30088 84.134.75.205 (20 May 2008 20:04:28 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Tue, 20 May 2008 20:04:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:+2MYbWk1PO78ZHmUuuOv7ZbBuaw= Original-Xref: news.stanford.edu gnu.emacs.help:158816 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:54181 Archived-At: On 2008-05-20 21:53 +0200, ljp wrote: > I'm relatively new to emacs, and it is gradually becoming the central > fixture through which I do all of my programming. One thing I find > myself doing often is executing a shell command in a shell buffer, and > then wanting to open a file that was listed in the output of the shell > command. To do this right now I manually select the filename and > paste it into the minibuffer for C-x C-f. Is there an easier way? > Like, maybe, a command that is able to pick out a filename from the > buffer when the cursor is in (but not necessarily at the start of) > that filename, and then open the file in a new buffer? Yes, try M-x ffap, it does exactly what you want. > Thanks! I've looked through documentation, but I haven't found > anything like this. Just look for ffap in the Emacs manual. Your desire is so common that there is even a minor mode which redefines the standard bindings for finding files. Enjoy, Sven