From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: using string variable with file name Date: 23 Feb 2008 13:03:30 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1203774085 6903 80.91.229.12 (23 Feb 2008 13:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2008 13:41:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 14:41:50 2008 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 1JSudR-0006Js-14 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2008 14:41:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSucv-0005Be-RU for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2008 08:41:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: individual.net Gzx0SnvITB869UlX8qMDyARaKXhcyJuShLi6pJXUxx3uQSEj2L Cancel-Lock: sha1:DQklPM+trUvMu/RxzDPlstbXUXQ= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:156422 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:51790 Archived-At: saneman wrote: > When using you last advice: > (setq load-path (cons "~/work/mylisp" load-path)) > (load-file "setnu.el") > > I get the error: > File error: "Cannot open load file", "/home/saneman/setnu.el" my bad, i should have used load instead of load-file: (load "setnu.el") > Seems that the load-path is not updated. it is. the problem is that load-file expands the file name you pass to it to an absolute path before it calls load. IOW it doesn't search the load-path at all. -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)