all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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 How to get the full path of the file I'm editing? 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 How to get the full path of the file I'm editing? 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

* Re: How to get the full path of the file I'm editing?
       [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
  1 sibling, 1 reply; 7+ messages in thread
From: Marc Tfardy @ 2008-02-18 19:01 UTC (permalink / raw)
  To: help-gnu-emacs

William Xu schrieb:
> "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.

My solution is following:

(setq frame-title-format '("%b " (buffer-file-name ("[" buffer-file-name 
"]"))))

regards

Marc



^ 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 19:01   ` Marc Tfardy
@ 2008-02-18 20:22     ` Johan Bockgård
  0 siblings, 0 replies; 7+ messages in thread
From: Johan Bockgård @ 2008-02-18 20:22 UTC (permalink / raw)
  To: help-gnu-emacs

Marc Tfardy <m-t-o___CUT__IT___@web.de> writes:

> My solution is following:
>
> (setq frame-title-format '("%b " (buffer-file-name ("["
> buffer-file-name "]"))))

Hey, that's *my* solution! ;)

-- 
Johan Bockgård


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to get the full path of the file I'm editing?
       [not found] ` <mailman.7573.1203345575.18990.help-gnu-emacs@gnu.org>
  2008-02-18 19:01   ` Marc Tfardy
@ 2008-02-18 21:18   ` Exal de Jesus Garcia Carrillo
  1 sibling, 0 replies; 7+ messages in thread
From: Exal de Jesus Garcia Carrillo @ 2008-02-18 21:18 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William Xu em gnu.emacs.help escreveu :


>>   I want to get the full path of the file I'm editing. How can I do it?


I'm not sure if you want: (buffer-file-name)


- -- 
Spam protection: 
In my e-mail replace the words `no-spam' with `exal'.



.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFHufYLoZmxoVJRtGIRAoKcAJ9Sr4p1kiY6UMEeUbltnFM2t65dWgCfXjWD
3Zy5CJ+ZDRj3QPMvl/3NRe4=
=t9lX
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

* 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

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 --
2008-02-18  7:52 How to get the full path of the file I'm editing? 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
     [not found] <mailman.7558.1203321148.18990.help-gnu-emacs@gnu.org>
2008-02-19  0:41 ` Rupert Swarbrick

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.