all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sven Joachim <svenjoac@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: opening a filename that appears in a buffer?
Date: Tue, 20 May 2008 22:01:24 +0200	[thread overview]
Message-ID: <87zlqkvj6z.fsf@gmx.de> (raw)
In-Reply-To: 01bc057a-47b6-4f3c-9685-648babebe7c3@h1g2000prh.googlegroups.com

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


  reply	other threads:[~2008-05-20 20:01 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 [this message]
2008-05-20 20:33   ` ljp
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=87zlqkvj6z.fsf@gmx.de \
    --to=svenjoac@gmx.de \
    --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.