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: Barry Margolin
Subject: Re: how to reference the current *.el file in elisp
Date: Thu, 25 Jun 2009 22:24:23 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <mailman.1237.1245930608.2239.help-gnu-emacs@gnu.org>,
 Harry Putnam <reader@newsguy.com> wrote:

> Barry Margolin <barmar@alum.mit.edu> writes:
> 
> >> 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
> 
> I've tried everything but prayer... but not seeing how to reference
> that in a message.
> 
> not:
> (message "hello"(load-file-name))
>  
> not:
> (message "hello" '(load-file-name))
> 
> not
> (message "Hello" 'load-file-name)
> 
> not
> (message "Hello" load-file-name)
> 
> A few others too ridiculous to print...

(message "Hello %s" 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 ***


reply via email to

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