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: Lennart Borgman
Subject: Re: how to reference the current *.el file in elisp
Date: Thu, 25 Jun 2009 14:30:24 +0200

On Thu, Jun 25, 2009 at 1:49 PM, Harry Putnam<address@hidden> wrote:
> Barry Margolin <address@hidden> 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.


Then maybe prayer is what you should try. After that you probably
realize that there are a lot of things you have not tried. (Is not
prayer for that?)

For example

   C-h f message

Or did you try that?


> 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...
>
>
>
>




reply via email to

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