🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189109

Re: Can't add more than one directory to default load-path?

#189109
From: Jim Duncan
Date: Fri, 03 May 1991 15:26
41 lines
2363 bytes
I really appreciate all the help everyone's sent, but most of the replies
don't answer the question, which was:

In article <#01G_0e+1@cs.psu.edu> jim@math.psu.edu (Jim Duncan) writes:

> Why can't I get it to set the path from site-init.el?

Lance Brown <brown@cs.utk.edu> sent this helpful note:

> If the build runs emacs in -batch mode then that is your problem.  There is
> a "bug" in the file startup.el that puts a temporary 
> 
> (let (load-path ...)  blah)
> 
> form around the code that actually loads and interprets any .el or .elc
> files being loaded into the emacs.

However, there is no "(let (load-path" in startup.el that I can find (this
is 18.57, by the way).  In fact, load-path is not referenced anywhere in
startup.el.  From looking at lread.c, it appears that a rather blatant
assumption is made that no one would ever want to have more than one
directory in the default load-path.

You can't just add an extra path to paths.h, because each would have to be a
null-terminated string.  A colon-delimited set is no good either.  I forgot
to mention in my previous posting that I tried all sorts of creative things
via paths.h (but maybe I didn't hit the magic permutation).

So, back to the original question:  Why doesn't the load-path get set
correctly from site-init.el?  What's going on here?

Thanks to all who reply (and replied).  I *do* appreciate the help.

	Jim



--
    Jim Duncan <jim@math.psu.edu> Penn State Math Dept Systems Administrator
 "[A computer is] like an Old Testament god, with a lot of rules and no mercy."
						Joseph Campbell
Technical Details
Message-ID: <_d4Gso#+1@cs.psu.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!uwm.edu!psuvax1!news
References: <#01G_0e+1@cs.psu.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,ba199fd1d3424e8b
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-04 00:00:54 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!uwm.edu!psuvax1!news
From: jim@math.psu.edu (Jim Duncan)
Newsgroups: gnu.emacs.help
Subject: Re: Can't add more than one directory to default load-path?
Message-ID: <_d4Gso#+1@cs.psu.edu>
Date: 3 May 91 15:26:15 GMT
References: <#01G_0e+1@cs.psu.edu>
Sender: news@cs.psu.edu (Usenet)
Organization: Department of Mathematics, Pennsylvania State University
Lines: 41
In-Reply-To: jim@math.psu.edu's message of Thu, 2 May 91 20:06:18 GMT
Nntp-Posting-Host: augusta.math.psu.edu