unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14876: 24.3; load-path and environment variable EMACSLOADPATH
@ 2013-07-15 22:41 Roland Winkler
  2013-07-15 22:48 ` Glenn Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Roland Winkler @ 2013-07-15 22:41 UTC (permalink / raw)
  To: 14876

The node "Library Search" suggests to to set EMACSLOADPATH to some
user directory such as /home/foo/.emacs.d/lisp. Yet this does not
agree with the docstring of load-path and emacs fails miserably if
one uses

  export EMACSLOADPATH=/home/foo/.emacs.d/lisp

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.

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

I looked into this because I was looking for a way to _extend_ the
emacs load path in a Makefile generated via autoconf.
Autoconf uses the shell script elisp-comp to compile lisp files.
This script uses

  echo "(setq load-path (cons nil load-path))" > script
  $EMACS -batch -q -l script -f batch-byte-compile *.el || exit $?

In such a hard-coded setting I cannot (easily) extend the load-path via
the emacs option --load.  But the purpose of loading the file script
is not clear to me either.


In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2013-03-27 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
System Description:	Ubuntu 10.04.4 LTS






^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-11-14  8:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-15 22:41 bug#14876: 24.3; load-path and environment variable EMACSLOADPATH Roland Winkler
2013-07-15 22:48 ` Glenn Morris
2013-07-15 23:11   ` Roland Winkler
2013-07-15 23:23     ` Glenn Morris
2013-07-15 23:29       ` Glenn Morris
2013-07-16  0:34         ` Roland Winkler
2013-07-16  0:55           ` Roland Winkler
2013-07-16  0:55           ` Glenn Morris
2013-07-16  1:16             ` Roland Winkler
2013-07-16  1:39               ` Glenn Morris
2013-07-16  3:14                 ` Roland Winkler
2013-11-14  8:39   ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).