help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Knowing the name of a file from the file itself


From: Andreas Politz
Subject: Re: Knowing the name of a file from the file itself
Date: Tue, 21 Oct 2008 03:28:57 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

abc wrote:
Hi everyone,

I'm a recent Emacs convert. I'm structuring my .emacs.d directory
which has become quite messy.

For that purpose, I'd like to know if it's possible to know the name
of a file and the path to it from the file itself, like in many other
languages, e.g. Ruby.

I've looked for a variable or function for this with no luck.


Thanks in advance.

I think `load-file-name' is what you are looking for.


,----[ C-h v load-file-name RET ]
| load-file-name is a variable defined in `C source code'.
| Its value is nil
|
|
| Documentation:
| Full name of file being loaded by `load'.
|
`----


-ap


reply via email to

[Prev in Thread] Current Thread [Next in Thread]