From: Achim Gratz <Stromeko@nexgo.de>
To: 10208@debbugs.gnu.org
Subject: bug#10208: site-lisp directories in load-path after --no-site-lisp
Date: Fri, 06 Jan 2012 22:57:47 +0100 [thread overview]
Message-ID: <87zke0mr38.fsf@Rainer.invalid> (raw)
In-Reply-To: <CAAeL0STPmUeXcMLwSw8QCEaA4Gvu87RCtPxr_XYh7G2X7EzNaQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: no-site-lisp.el --]
[-- Type: text/x-emacs-lisp, Size: 238 bytes --]
(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)))
[-- Attachment #3: Type: text/plain, Size: 515 bytes --]
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
next prev parent reply other threads:[~2012-01-06 21:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-03 23:29 bug#10208: site-lisp directories in load-path after --no-site-lisp Juanma Barranquero
2011-12-07 2:18 ` Glenn Morris
2012-01-04 19:42 ` Achim Gratz
2012-01-06 21:57 ` Achim Gratz [this message]
2012-01-07 17:18 ` Achim Gratz
2012-01-11 1:08 ` Glenn Morris
2012-01-12 10:38 ` ASSI
2012-01-12 20:36 ` Glenn Morris
2012-01-17 21:42 ` Achim Gratz
2011-12-07 23:16 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zke0mr38.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=10208@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.