From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: how to reference the current *.el file in elisp Date: Thu, 25 Jun 2009 22:24:23 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1245984100 24790 80.91.229.12 (26 Jun 2009 02:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2009 02:41:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 26 04:41:33 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MK1Nd-0006Ym-As for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jun 2009 04:41:33 +0200 Original-Received: from localhost ([127.0.0.1]:46698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MK1Nc-0006yU-Q5 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2009 22:41:32 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!feeder.erje.net!eternal-september.org!news.eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: news.eternal-september.org U2FsdGVkX1/FzrdnlZk51qEagA3Zj2tMs6gpTnT02VkU7uOgjJPeDuGcsvkiDwF5cxPIM96T2emfwjUh531OViNCqrPohs5LCmRYMKuhnfrEi1rtDozG5SIjotfq4W1oOZ+4JoPl4zQ= Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Fri, 26 Jun 2009 02:26:36 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1++0XC43NqLgfrOW7BocfPn9Xykax+TSY4= Cancel-Lock: sha1:9UfMCNf99JwO5vKmoo9uz5/aYWU= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:170318 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65533 Archived-At: In article , Harry Putnam wrote: > Barry Margolin 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 ***