From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: relative load-file Date: Wed, 11 Nov 2009 19:35:58 +0100 Message-ID: <87ljic7vu9.fsf@thinkpad.tsdh.de> References: <6cd6de210911110901v24307163i253e69e89c72c9e@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 1257965881 9873 80.91.229.12 (11 Nov 2009 18:58:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 18:58:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Rocky Bernstein Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 11 19:57:54 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 1N8IOA-00007U-6d for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 19:57:54 +0100 Original-Received: from localhost ([127.0.0.1]:58081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8IO9-0007e4-SG for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 13:57:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8I3A-0001sj-9K for emacs-devel@gnu.org; Wed, 11 Nov 2009 13:36:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8I34-0001kN-Tg for emacs-devel@gnu.org; Wed, 11 Nov 2009 13:36:11 -0500 Original-Received: from [199.232.76.173] (port=48375 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8I34-0001jv-Kf for emacs-devel@gnu.org; Wed, 11 Nov 2009 13:36:06 -0500 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]:35778) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8I32-00043B-AA; Wed, 11 Nov 2009 13:36:04 -0500 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id C8D1EBE2CF; Wed, 11 Nov 2009 13:36:02 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 11 Nov 2009 13:36:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=smtpout; bh=St5bvadq89jc8QopuTgIxMG/5P4=; b=ZngrolaQFSoWyle6Jdp6bJtVBLD384o8CfdfITPcWn92WbYZiZ5pWl87UnzrYG4du6yJA46y002+5LEMoUeidYbXsAxJ2U/yhQ+GcFzhmnz/QIbqEr/8xyhsA6eEoQ1uC79msy0mM/N5G6L2JHcZuV7UMGmQx17wWlNPAJSss4Q= X-Sasl-enc: AOhcqG/ue0Z4Y2U6FAp76FZflmOolVqZGYO+Yf+w/7zb 1257964562 Original-Received: from thinkpad.tsdh.de (p54AF235A.dip0.t-ipconnect.de [84.175.35.90]) by mail.messagingengine.com (Postfix) with ESMTPA id 9873B21A3C; Wed, 11 Nov 2009 13:36:01 -0500 (EST) In-Reply-To: <6cd6de210911110901v24307163i253e69e89c72c9e@mail.gmail.com> (Rocky Bernstein's message of "Wed, 11 Nov 2009 12:01:31 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Mail-Copies-To: never 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:116835 Archived-At: Rocky Bernstein writes: Hi Rocky! > For developing multi-file emacs packages, it would be helpful to have > something akin to require-relative in Ruby 1.9. 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. `load-file' accepts relative paths. Let's say your project looks like foo/foo.el foo/misc/foo-misc.el then a (load-file "misc/foo-misc.el") in foo.el should work. Bye, Tassilo