[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to reference the current *.el file in elisp
From: |
Barry Margolin |
Subject: |
Re: how to reference the current *.el file in elisp |
Date: |
Thu, 25 Jun 2009 03:23:22 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.1223.1245903674.2239.help-gnu-emacs@gnu.org>,
Harry Putnam <reader@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.
> What I'm really after is a say to to add that value to a message
> ('(message "hello")')
>
> Like this message (wrapped for mail):
>
> (message "hello world -- from
> /cvsb/reader/home/reader/lisp/site-start.el")
> (sit-for 1)
>
> that I use sometimes when tracking down how things are loading.
>
> How can I reference the name in a variable instead of writing it out?
load-file-name
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
- how to reference the current *.el file in elisp, Harry Putnam, 2009/06/25
- Re: how to reference the current *.el file in elisp,
Barry Margolin <=
- Message not available
- Message not available
- Re: how to reference the current *.el file in elisp, Barry Margolin, 2009/06/25
- Re: how to reference the current *.el file in elisp, jidanni, 2009/06/28
- Re: how to reference the current *.el file in elisp, Barry Margolin, 2009/06/29
- Re: how to reference the current *.el file in elisp, jidanni, 2009/06/30
- Re: how to reference the current *.el file in elisp, Barry Margolin, 2009/06/30
Re: how to reference the current *.el file in elisp, Xah Lee, 2009/06/25