From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: relative load-file Date: Wed, 11 Nov 2009 15:17:57 -0500 Message-ID: References: <6cd6de210911110901v24307163i253e69e89c72c9e@mail.gmail.com> <87ljic7vu9.fsf@thinkpad.tsdh.de> <6cd6de210911111126y62c7dfceqb82092c9eef9890d@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257970703 28071 80.91.229.12 (11 Nov 2009 20:18:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 20:18:23 +0000 (UTC) Cc: Tassilo Horn , emacs-devel@gnu.org To: Rocky Bernstein Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 11 21:18:16 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 1N8Jdu-0006CM-G0 for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 21:18:15 +0100 Original-Received: from localhost ([127.0.0.1]:33901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8Jdt-0006aW-P9 for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 15:18:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8Jdo-0006Wg-9T for emacs-devel@gnu.org; Wed, 11 Nov 2009 15:18:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8Jdj-0006GN-Hp for emacs-devel@gnu.org; Wed, 11 Nov 2009 15:18:07 -0500 Original-Received: from [199.232.76.173] (port=57569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8Jdj-0006Fz-9z for emacs-devel@gnu.org; Wed, 11 Nov 2009 15:18:03 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:51890 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8Jde-0005CT-MK; Wed, 11 Nov 2009 15:17:58 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAIuq+kpMCpsp/2dsb2JhbACBTtwqhDwEgWuHOA X-IronPort-AV: E=Sophos;i="4.44,724,1249272000"; d="scan'208";a="49123321" Original-Received: from 76-10-155-41.dsl.teksavvy.com (HELO pastel.home) ([76.10.155.41]) by ironport2-out.pppoe.ca with ESMTP; 11 Nov 2009 15:17:57 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5F6568373; Wed, 11 Nov 2009 15:17:57 -0500 (EST) In-Reply-To: <6cd6de210911111126y62c7dfceqb82092c9eef9890d@mail.gmail.com> (Rocky Bernstein's message of "Wed, 11 Nov 2009 14:26:01 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) 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:116840 Archived-At: > This is loading relative to the directory I started at, /tmp/proj/subdir, > not relative to the directory that of the file that issued the load, > /tmp/proj/test1.el. You can do (load (expand-file-name (file-name-directory load-file-name))) But until now we haven't needed to use such a scheme. Stefan