help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using string variable with file name


From: Joost Kremers
Subject: Re: using string variable with file name
Date: 23 Feb 2008 13:03:30 GMT
User-agent: slrn/0.9.8.1 (Linux)

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]