From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.devel Subject: Re: relative load-file Date: Fri, 13 Nov 2009 06:24:40 +0100 Message-ID: <4AFCED98.1080209@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258089955 8316 80.91.229.12 (13 Nov 2009 05:25:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2009 05:25:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: rocky@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 13 06:25:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8ofK-0008Sk-T0 for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2009 06:25:47 +0100 Original-Received: from localhost ([127.0.0.1]:33233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8ofK-0002O9-7a for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2009 00:25:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8ofE-0002Nv-NJ for emacs-devel@gnu.org; Fri, 13 Nov 2009 00:25:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8ofA-0002NQ-3r for emacs-devel@gnu.org; Fri, 13 Nov 2009 00:25:40 -0500 Original-Received: from [199.232.76.173] (port=34474 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8of9-0002NN-Tz for emacs-devel@gnu.org; Fri, 13 Nov 2009 00:25:35 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:40683) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N8of9-00039f-Cx for emacs-devel@gnu.org; Fri, 13 Nov 2009 00:25:35 -0500 Original-Received: (qmail invoked by alias); 13 Nov 2009 05:25:32 -0000 Original-Received: from p57A09D82.dip0.t-ipconnect.de (EHLO [192.168.1.2]) [87.160.157.130] by mail.gmx.net (mp013) with SMTP; 13 Nov 2009 06:25:32 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX18W+95eGxkWh8EVglkOqWFGAtt4h//21zCXUYnzv8 jZDja8Y5IsEfPu User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-References: 6cd6de210911120501u24047705w5caad5112db6cb45@mail.gmail.com X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116926 Archived-At: > [...] > That is, one wants to load an Emacs Lisp file relative the file > that issues the load which is often in the same directory or a > nearby directory. > > This would be easy if there were a variable like __FILE__ that Ruby > provides. Why would you need __FILE__ if in emacs you can type much more easily #$ As in (load (concat (file-name-directory #$) "extra-stuff")) --- grischka