[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: opening a filename that appears in a buffer?
From: |
Sven Joachim |
Subject: |
Re: opening a filename that appears in a buffer? |
Date: |
Tue, 20 May 2008 22:01:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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