all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Harry Putnam <reader@newsguy.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to reference the current *.el file in elisp
Date: Thu, 25 Jun 2009 14:30:24 +0200	[thread overview]
Message-ID: <e01d8a50906250530q6ccdb787x5c8ce1c862c4aeb5@mail.gmail.com> (raw)
In-Reply-To: <878wjg4jon.fsf@newsguy.com>

On Thu, Jun 25, 2009 at 1:49 PM, 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.


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	other threads:[~2009-06-25 12:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1223.1245903674.2239.help-gnu-emacs@gnu.org>
2009-06-25  5:49 ` how to reference the current *.el file in elisp Xah Lee
2009-06-25  7:23 ` Barry Margolin
2009-06-25 11:49   ` Harry Putnam
2009-06-25 12:30     ` Lennart Borgman [this message]
2009-06-25 23:43       ` Harry Putnam
     [not found]   ` <mailman.1237.1245930608.2239.help-gnu-emacs@gnu.org>
2009-06-25 12:18     ` Pascal J. Bourguignon
2009-06-26  2:24     ` Barry Margolin
2009-06-28  0:44       ` jidanni
2009-06-29  3:10         ` Barry Margolin
2009-06-30  1:29           ` jidanni
2009-06-30  3:30             ` Barry Margolin
     [not found] <mailman.1712.1246572015.2239.help-gnu-emacs@gnu.org>
2009-07-08  9:30 ` Anselm Helbig
2009-07-02 12:48 jidanni
  -- strict thread matches above, loose matches on Subject: below --
2009-06-25  4:20 Harry Putnam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50906250530q6ccdb787x5c8ce1c862c4aeb5@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=reader@newsguy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.