[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10208: site-lisp directories in load-path after --no-site-lisp
From: |
Achim Gratz |
Subject: |
bug#10208: site-lisp directories in load-path after --no-site-lisp |
Date: |
Fri, 06 Jan 2012 22:57:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Achim Gratz <Stromeko@nexgo.de> writes:
> I still get this with a fresh build from the git repo:
>
> emacs/build> emacs -batch -Q --eval "(mapcar 'message load-path )"
> /usr/local/share/emacs/24.0.92/site-lisp
> /usr/local/share/emacs/site-lisp
> /usr/local/share/emacs/site-lisp/org
> /usr/local/share/emacs/24.0.92/lisp
> /usr/local/share/emacs/24.0.92/lisp/…
> /usr/local/share/emacs/24.0.92/leim
>
> The two site-lisp directories are configured as $(locallisppath). If I
> remove this, I don't get any site-lisp directories when starting Emacs
> normally.
If I put the equivalent (I think) of what lread.c should be doing into
no-site-lisp.el
(setq x-site-lisp nil)
(while (progn
(setq tem (car load-path))
(setq tem1 (string-match "site-lisp" tem))
(if tem1
(progn
(setq load-path (cdr load-path))
(setq x-site-lisp (cons tem x-site-lisp)))
nil)))
and load it like this, I get the expected result:
emacs/build> emacs --batch -Q -l no-site-lisp.el --eval "(mapcar 'message
load-path )"
/usr/local/share/emacs/24.0.92/lisp
/usr/local/share/emacs/24.0.92/lisp/…
/usr/local/share/emacs/24.0.92/leim
I must be missing something or the option never propagates to lread.c?
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada