From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#10208: site-lisp directories in load-path after --no-site-lisp Date: Fri, 06 Jan 2012 22:57:47 +0100 Message-ID: <87zke0mr38.fsf@Rainer.invalid> References: <87ipkrw8y7.fsf@Rainer.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1325887113 8645 80.91.229.12 (6 Jan 2012 21:58:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2012 21:58:33 +0000 (UTC) To: 10208@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 06 22:58:29 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RjHnx-0005gd-Bv for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jan 2012 22:58:29 +0100 Original-Received: from localhost ([::1]:38170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjHnw-0001BR-NY for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jan 2012 16:58:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjHnu-0001BL-7z for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 16:58:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjHns-0000FQ-R9 for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 16:58:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjHns-0000FM-OK for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 16:58:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RjHrO-0003I6-9y for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 17:02:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jan 2012 22:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10208 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132588731112627 (code B ref -1); Fri, 06 Jan 2012 22:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jan 2012 22:01:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RjHrD-0003Hc-54 for submit@debbugs.gnu.org; Fri, 06 Jan 2012 17:01:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RjHrB-0003HV-C8 for submit@debbugs.gnu.org; Fri, 06 Jan 2012 17:01:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjHne-0000El-L2 for submit@debbugs.gnu.org; Fri, 06 Jan 2012 16:58:11 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:32923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjHne-0000Eh-Er for submit@debbugs.gnu.org; Fri, 06 Jan 2012 16:58:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjHnd-0001BG-5D for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 16:58:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjHnb-0000EX-Sl for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 16:58:09 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:51148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjHnb-0000ET-Jw for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 16:58:07 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RjHnZ-0005VW-Un for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2012 22:58:05 +0100 Original-Received: from pd9eb4196.dip.t-dialin.net ([217.235.65.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jan 2012 22:58:05 +0100 Original-Received: from Stromeko by pd9eb4196.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jan 2012 22:58:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 62 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb4196.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:Ma0ffJlFZky3Z/TW0J1fhA1dGJ4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 06 Jan 2012 17:02:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55439 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Achim Gratz 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 --=-=-= Content-Type: text/x-emacs-lisp Content-Disposition: inline; filename=test.el Content-Description: 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))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 --=-=-=--