🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99121

Problems with enlarging 'load-path

#99121
From: Martin Maechler
Date: Sat, 27 Oct 1990 20:02
33 lines
2186 bytes
Following is the Documentation string of  load-path:

Documentation:
*List of directories to search for files to load.
Each element is a string (directory name) or nil (try default directory).
Initialized based on EMACSLOADPATH environment variable, if any,
otherwise to default specified in by file paths.h when emacs was built.

Similar in 22.3.1 (p.160) of GNU-emacs manual.

Now, I did 
	(setq load-path (cons "~/maechler/gnu" load-path))
in my .emacs 
and tried some 'load, 'autoload  (w/o giving any paths or extensions).
It just failed. Saying "Load: file <...> not found".

I gave up, and just gave full pathnames of the files to load.
Only today, I wanted to try again, and gave the full path, instead of
"~/..". And it worked !!

Now, I know thath there is a function to translate "~/.." to full
path, but I very strongly think that this should either be told in the
Doc. about  load-path, or then done for each 'load or 'autoload  which
may be inefficient. Alternatively,  load-path entries that contain "~"
should be changed by call, so that the filename-expansion only occurs once.

Summary: Minimum = Update docu. about load-path
	 Better  = change (load ..) in order to work with "~" in load-path.
	           (* again: load deals with "~" in filenames but
				  NOT in load-path. *)

Martin Maechler, Bellcore 2M-343, 445 South St., Morristown, NJ 07962-1910, USA
maechler@bellcore.com, Tel: (201) 829-4837(w)  933-0944(h), Fax (201) 538-9093.
Technical Details
Message-ID: <9010272002.AA00805@breeze.bellcore.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BREEZE.BELLCORE.COM!maechler

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,73d172bb030d9561,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-10-27 13:02:34 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BREEZE.BELLCORE.COM!maechler
From: maechler@BREEZE.BELLCORE.COM (Martin Maechler)
Newsgroups: gnu.emacs.bug
Subject: Problems with enlarging 'load-path
Message-ID: <9010272002.AA00805@breeze.bellcore.com>
Date: 27 Oct 90 20:02:34 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: maechler@bellcore.com (Martin Maechler)
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 33
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Sat Oct 27 21:02:34 1990