* Re: How to get the full path of the file I'm editing?
[not found] <mailman.7558.1203321148.18990.help-gnu-emacs@gnu.org>
@ 2008-02-19 0:41 ` Rupert Swarbrick
0 siblings, 0 replies; 7+ messages in thread
From: Rupert Swarbrick @ 2008-02-19 0:41 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, 18 Feb 2008 15:52:21 +0800, Forrest Y. Yu wrote:
> I want to get the full path of the file I'm editing. How can I do it?
>
I can't remember offhand how to do it in elisp, but if you just want to
know every so often when actually editing, try typing C-x C-f (find file)
and the prompt will start off containing the current directory. Something
like C-a C-k C-g will drop you back where you started, with the current
directory on the top of the kill ring.
Rupert
^ permalink raw reply [flat|nested] 7+ messages in thread
* How to get the full path of the file I'm editing?
@ 2008-02-18 7:52 Forrest Y. Yu
2008-02-18 8:09 ` Armando Cambra
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Forrest Y. Yu @ 2008-02-18 7:52 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 142 bytes --]
Hi,
I want to get the full path of the file I'm editing. How can I do it?
Many thanks!
Regards,
Forrest
--
Stupid is as stupid does.
[-- Attachment #2: Type: text/html, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to get the full path of the file I'm editing?
2008-02-18 7:52 Forrest Y. Yu
@ 2008-02-18 8:09 ` Armando Cambra
2008-02-18 14:39 ` William Xu
[not found] ` <mailman.7573.1203345575.18990.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 7+ messages in thread
From: Armando Cambra @ 2008-02-18 8:09 UTC (permalink / raw)
To: Forrest Y. Yu; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
Hi,
I made a function for this (disclaimer: I'm in no way a lisp hacker :-))
(defun insert-filename ()
(interactive)
(insert
(buffer-file-name)
)
)
Regards
Armando
On Feb 18, 2008 8:52 AM, Forrest Y. Yu <forrest.yu@gmail.com> wrote:
> Hi,
>
> I want to get the full path of the file I'm editing. How can I do it?
>
> Many thanks!
>
> Regards,
> Forrest
>
> --
> Stupid is as stupid does.
[-- Attachment #2: Type: text/html, Size: 796 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to get the full path of the file I'm editing?
2008-02-18 7:52 Forrest Y. Yu
2008-02-18 8:09 ` Armando Cambra
@ 2008-02-18 14:39 ` William Xu
[not found] ` <mailman.7573.1203345575.18990.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 7+ messages in thread
From: William Xu @ 2008-02-18 14:39 UTC (permalink / raw)
To: help-gnu-emacs
"Forrest Y. Yu" <forrest.yu@gmail.com> writes:
> I want to get the full path of the file I'm editing. How can I do it?
I usually would do C-x C-f, then C-g.
--
William
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <mailman.7573.1203345575.18990.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2008-02-19 0:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.7558.1203321148.18990.help-gnu-emacs@gnu.org>
2008-02-19 0:41 ` How to get the full path of the file I'm editing? Rupert Swarbrick
2008-02-18 7:52 Forrest Y. Yu
2008-02-18 8:09 ` Armando Cambra
2008-02-18 14:39 ` William Xu
[not found] ` <mailman.7573.1203345575.18990.help-gnu-emacs@gnu.org>
2008-02-18 19:01 ` Marc Tfardy
2008-02-18 20:22 ` Johan Bockgård
2008-02-18 21:18 ` Exal de Jesus Garcia Carrillo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).