From: ljp <lonnie.princehouse@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: opening a filename that appears in a buffer?
Date: Tue, 20 May 2008 13:33:15 -0700 (PDT) [thread overview]
Message-ID: <ea7efebd-e1bd-4932-b0bd-f923cf43ad25@w5g2000prd.googlegroups.com> (raw)
In-Reply-To: 87zlqkvj6z.fsf@gmx.de
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!
next prev parent reply other threads:[~2008-05-20 20:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-20 19:53 opening a filename that appears in a buffer? ljp
2008-05-20 20:01 ` Sven Joachim
2008-05-20 20:33 ` ljp [this message]
2008-05-20 20:04 ` Marc Tfardy
2008-05-20 21:52 ` Richard G Riley
2008-05-22 16:31 ` Xah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea7efebd-e1bd-4932-b0bd-f923cf43ad25@w5g2000prd.googlegroups.com \
--to=lonnie.princehouse@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.