From: "Drew Adams" <drew.adams@oracle.com>
To: "'Suvayu Ali'" <fatkasuvayu+linux@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: open file listed in a text file
Date: Thu, 11 Feb 2010 08:09:03 -0800 [thread overview]
Message-ID: <1D47749423B34965B5B63F8547B30F87@us.oracle.com> (raw)
In-Reply-To: <4B73CE56.7000600@gmail.com>
> >> What I want is that when the cursor is on the path of a file (in a
> >> file), I would like to open that particular file with a keyboard
> >> shortcut.
> >
> > I did the exact same thing! I put this
> > `$ROOTSYS/build/version_number'
> > in the *scratch* buffer and executed `M-x ffap'. I mention
> > this in my previous message.
>
> I think what Andreas mentioned in a previous post is of importance.
> Emacs is not understanding that ${var} or $(var) or $var are the same
> thing. I repeated my experiment again, I noticed `M-x ffap'
> works only when I use the $var construct in the buffer. Maybe you
> can write a function that translates your preferred construct to
> $var and calls ffap with that modified string?
I haven't followed this thread closely. I get the impression that the question
has been answered several times now.
FWIW, In Icicles, `M-.' in the minibuffer retrieves text at point - always. For
commands that act on file names (e.g. `C-x C-f'), you can use `M-.' to pick up a
file name or URL at point.
And it will expand $var and ${var} correctly. (But it does not expand $(var).)
HTH.
prev parent reply other threads:[~2010-02-11 16:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-07 13:34 open file listed in a text file Chitlesh Goorah
2010-02-07 14:38 ` José A. Romero L.
2010-02-07 22:09 ` Chitlesh Goorah
2010-02-08 2:57 ` Barry Margolin
2010-02-08 12:22 ` Jorgen Grahn
2010-02-09 1:37 ` William Xu
2010-02-09 2:08 ` William Xu
2010-02-09 2:26 ` Lennart Borgman
2010-02-09 4:09 ` Eli Zaretskii
2010-02-09 5:35 ` William Xu
2010-02-09 18:19 ` Eli Zaretskii
[not found] ` <mailman.889.1265679652.14305.help-gnu-emacs@gnu.org>
2010-02-09 21:02 ` Chitlesh Goorah
2010-02-09 23:01 ` Suvayu Ali
2010-02-10 11:03 ` Andreas Politz
[not found] ` <mailman.959.1265756505.14305.help-gnu-emacs@gnu.org>
2010-02-11 8:04 ` Chitlesh Goorah
2010-02-11 9:21 ` Suvayu Ali
2010-02-11 9:31 ` Suvayu Ali
2010-02-11 16:09 ` Drew Adams [this message]
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=1D47749423B34965B5B63F8547B30F87@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=fatkasuvayu+linux@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.