GNU bug report logs - #14876
24.3; load-path and environment variable EMACSLOADPATH

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <winkler <at> gnu.org>

Date: Mon, 15 Jul 2013 22:42:01 UTC

Severity: minor

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: "Roland Winkler" <winkler <at> gnu.org>
Cc: 14876 <at> debbugs.gnu.org
Subject: bug#14876: 24.3; load-path and environment variable EMACSLOADPATH
Date: Mon, 15 Jul 2013 18:48:44 -0400
"Roland Winkler" wrote:

> The node "Library Search" suggests to to set EMACSLOADPATH to some
> user directory such as /home/foo/.emacs.d/lisp.

I don't quite see that it literally says that; but the info node should
be tidied up a little bit.

> The proper meaning of EMACSLOADPATH seems to be the one given in the
> docstring of load-path saying that EMACSLOADPATH overrides the
> default value of load-path specified by file `epaths.h' when Emacs
> was built.

Yes.

> The docstring of load-path also says that an element `nil' means
> "try default directory". Yet what is the "default directory" in this
> context?

Whatever the value is where you call `load' from.

> default-directory is a buffer-local variable with default nil.

Seems like a red-herring. Normally every buffer has a non-nil value.

> I looked into this because I was looking for a way to _extend_ the
> emacs load path in a Makefile generated via autoconf.

Use "emacs -L /path/to/add".

(cf http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12100 )




This bug report was last modified 11 years and 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.