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

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

Re: how to reference the current *.el file in elisp


From: Xah Lee
Subject: Re: how to reference the current *.el file in elisp
Date: Wed, 24 Jun 2009 22:49:04 -0700 (PDT)
User-agent: G2/1.0

On Jun 24, 9:20 pm, Harry Putnam <rea...@newsguy.com> wrote:
> How does elisp reference the current *.el file?... I mean like in the
> way that the variable $0 carries the the value that is the full name
> of the script its in.

you can use this:
(or load-file-name buffer-file-name)

if you want the full path, call file-name-directory on the result.

  Xah
∑ http://xahlee.org/

reply via email to

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