From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: how to reference the current *.el file in elisp Date: Thu, 25 Jun 2009 14:30:24 +0200 Message-ID: References: <878wjg4jon.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245933084 6808 80.91.229.12 (25 Jun 2009 12:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2009 12:31:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Harry Putnam Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 14:31:17 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 1MJo6Y-00077N-1s for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2009 14:31:05 +0200 Original-Received: from localhost ([127.0.0.1]:44263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJo6U-0006D7-NA for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2009 08:30:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJo66-0006CW-By for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 08:30:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJo61-0006BV-LX for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 08:30:33 -0400 Original-Received: from [199.232.76.173] (port=49392 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJo61-0006BH-F3 for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 08:30:29 -0400 Original-Received: from mail-bw0-f217.google.com ([209.85.218.217]:49326) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJo60-00045C-Ix for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 08:30:29 -0400 Original-Received: by bwz17 with SMTP id 17so1656353bwz.42 for ; Thu, 25 Jun 2009 05:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=iI/Y8tr6MMlrq5cUR2j4uY5lQ2Ti31+RMsgcKeuGiSc=; b=Dmx4N8LFpTQbQY6Fc3A+3FC310NN5qy4fJcCZu+ga1kwsIGGK7Jqm2hqPii65Wq5TV hRqFW4tI2XZw+mKsjkwIugNkLAuQFfhaDxMw10SAVcsrJIjbJ0NN6Z6C1WQN05U3lq8V Uxi06V6vB0IXj05t/FmYV3A5Y1VAzMi9/racE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xBt6OgyvPMYhopTpJ80m4GThNaw4BvxOIJAq8057jEHSQukpd3RdR5xAz60MNpEc/w Ci4hfbCQcPHF7MsVt2BoIYPM4NZa1f8sAV/q5MBa1WG/EhTlh/DispazDtaqCUZ2ISz9 zx0CvckR5pz7pYEvvEQefNvc12SzjxOdWhljg= Original-Received: by 10.239.167.10 with SMTP id d10mr182765hbe.118.1245933024901; Thu, 25 Jun 2009 05:30:24 -0700 (PDT) In-Reply-To: <878wjg4jon.fsf@newsguy.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65501 Archived-At: On Thu, Jun 25, 2009 at 1:49 PM, Harry Putnam wrote: > Barry Margolin writes: > >>> Like this message (wrapped for mail): >>> >>> (message "hello world -- from >>> =C2=A0/cvsb/reader/home/reader/lisp/site-start.el") >>> =C2=A0(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... > > > >