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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#14876: closed (24.3; load-path and environment variable
 EMACSLOADPATH)
Date: Thu, 14 Nov 2013 08:40:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 14 Nov 2013 03:39:42 -0500
with message-id <4qppq3bcmp.fsf <at> fencepost.gnu.org>
and subject line Re: bug#14876: 24.3; load-path and environment variable EMACSLOADPATH
has caused the debbugs.gnu.org bug report #14876,
regarding 24.3; load-path and environment variable EMACSLOADPATH
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
14876: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14876
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Roland Winkler" <winkler <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; load-path and environment variable EMACSLOADPATH
Date: Mon, 15 Jul 2013 17:41:07 -0500
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



[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 14876-done <at> debbugs.gnu.org
Subject: Re: bug#14876: 24.3; load-path and environment variable EMACSLOADPATH
Date: Thu, 14 Nov 2013 03:39:42 -0500
Version: 24.4

I finally got round to updating the "Library Search" section.


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.