unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16494: 24.3.50; $EMACSLOADPATH stopped working
@ 2014-01-19 15:33 Sebastian Wiesner
  2014-01-19 19:16 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Wiesner @ 2014-01-19 15:33 UTC (permalink / raw)
  To: 16494

In Emacs 24.3.50, $EMACSLOADPATH stopped working.

To reproduce, save the following code as `load-path-test.el':

(defun print-path-list (paths)
  (dolist (path paths)
    (princ (concat "  " path))
    (terpri)))

(defun main ()
  (princ "load-path:")
  (terpri)
  (print-path-list load-path)
  (princ "$EMACSLOADPATH")
  (terpri)
  (print-path-list (split-string (getenv "EMACSLOADPATH")
                                 (regexp-quote path-separator))))

Then run it with `EMACSLOADPATH=$HOME:/tmp emacs -Q --batch -l
load-path-test -f main'.  I see the following output:

load-path:
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/vc
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/url
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/textmodes
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/progmodes
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/play
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/org
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/nxml
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/net
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/mh-e
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/mail
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/leim
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/language
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/international
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/gnus
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/eshell
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/erc
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/emulation
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/emacs-lisp
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/cedet
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/calendar
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/calc
  /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/obsolete
$EMACSLOADPATH
  /Users/swiesner
  /tmp

As you can see, `load-path' is not initialized with the value of
$EMACSLOADPATH, even though the variable is properly exported and known
to the Emacs process.

What am I doing wrong?





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

* bug#16494: 24.3.50; $EMACSLOADPATH stopped working
  2014-01-19 15:33 bug#16494: 24.3.50; $EMACSLOADPATH stopped working Sebastian Wiesner
@ 2014-01-19 19:16 ` Glenn Morris
  2014-01-20  7:59   ` Paul Eggert
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2014-01-19 19:16 UTC (permalink / raw)
  To: Sebastian Wiesner; +Cc: 16494, Paul Eggert

Sebastian Wiesner wrote:

> In Emacs 24.3.50, $EMACSLOADPATH stopped working.

This stopped working in r115557, 2013-12-16.
For example,

   bool use_loadpath = !NILP (Vpurify_flag);

is backwards.





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

* bug#16494: 24.3.50; $EMACSLOADPATH stopped working
  2014-01-19 19:16 ` Glenn Morris
@ 2014-01-20  7:59   ` Paul Eggert
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Eggert @ 2014-01-20  7:59 UTC (permalink / raw)
  To: Glenn Morris, Sebastian Wiesner; +Cc: 16494-done

Thanks for pointing out this problem.  I think I've fixed it in Emacs 
trunk bzr 116077 and am marking this as done.  If the fix doesn't work 
for you we can reopen the bug report.





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

end of thread, other threads:[~2014-01-20  7:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-19 15:33 bug#16494: 24.3.50; $EMACSLOADPATH stopped working Sebastian Wiesner
2014-01-19 19:16 ` Glenn Morris
2014-01-20  7:59   ` Paul Eggert

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).