help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: opening a filename that appears in a buffer?


From: ljp
Subject: Re: opening a filename that appears in a buffer?
Date: Tue, 20 May 2008 13:33:15 -0700 (PDT)
User-agent: G2/1.0

On May 20, 4:01 pm, Sven Joachim <svenj...@gmx.de> wrote:
> 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


Perfect!  Thanks!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]