From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10208: site-lisp directories in load-path after --no-site-lisp Date: Sun, 4 Dec 2011 00:29:21 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322955050 2204 80.91.229.12 (3 Dec 2011 23:30:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2011 23:30:50 +0000 (UTC) To: 10208@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 04 00:30:46 2011 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 1RWz2b-0002f0-Ga for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Dec 2011 00:30:45 +0100 Original-Received: from localhost ([::1]:51171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWz2a-0001wB-S6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Dec 2011 18:30:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWz2X-0001vv-JS for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 18:30:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWz2W-0005Mg-FG for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 18:30:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWz2W-0005Ma-CQ for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 18:30:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RWz2s-00073W-Hg for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 18:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Dec 2011 23:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10208 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.132295503627077 (code B ref -1); Sat, 03 Dec 2011 23:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Dec 2011 23:30:36 +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 1RWz2Q-00072d-6E for submit@debbugs.gnu.org; Sat, 03 Dec 2011 18:30:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWz2M-00072S-LE for submit@debbugs.gnu.org; Sat, 03 Dec 2011 18:30:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWz1y-0005FX-OL for submit@debbugs.gnu.org; Sat, 03 Dec 2011 18:30:07 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:36247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWz1y-0005FR-Mr for submit@debbugs.gnu.org; Sat, 03 Dec 2011 18:30:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWz1y-0001sN-0i for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 18:30:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWz1w-0005DN-Kp for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 18:30:05 -0500 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:41169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWz1w-0005Cr-Dm for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 18:30:04 -0500 Original-Received: by dakl33 with SMTP id l33so612860dak.0 for ; Sat, 03 Dec 2011 15:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=60YU3Ihq/0tzedZWCRGIzq5vjx49ILcHEzqWD0PDLSo=; b=EoaVwFeFHm4757w1HRdUpFp+7dOOC1tDjfhOujOsbUBQTNy3Kdpl/DcmsEg/gvf76W Cj2zf+9sHuMcUvatDTilSLL+ok3n84Kdvwb0eGzBJLTMQDNXRvu91f1St9RATGWgt+Nt s5cyqVRWE2zoq8aY0oEzw1Dh4r8C4t9mc/ND8= Original-Received: by 10.68.2.35 with SMTP id 3mr804764pbr.28.1322955003177; Sat, 03 Dec 2011 15:30:03 -0800 (PST) Original-Received: by 10.142.202.11 with HTTP; Sat, 3 Dec 2011 15:29:21 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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: Sat, 03 Dec 2011 18:31: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:54664 Archived-At: Package: emacs On non-w32 systems: - init_lread() removes directories matching "site-lisp" from load-path, and then re-adds them unless --no-site-lisp was passed. - However, the site-lisp directories under the installation (lread.c:4189) and source (lread.c:4229) directories are added unconditionally. On w32 systems, load-path gets its default from EMACSLOADPATH (defined in w32.c:1592), which includes %emacs_dir%/site-lisp and %emacs_dir%/../site-lisp unconditionally. As an example, I build Emacs in C:\emacs\trunk and have my site-lisp data in C:\emacs\site-lisp. After "emacs -Q", load-path contains: c:/emacs/trunk/site-lisp C:/emacs/trunk/../site-lisp c:/emacs/site-lisp/bm c:/emacs/site-lisp/lua c:/emacs/site-lisp/slime c:/emacs/site-lisp/slime/contrib c:/emacs/site-lisp/slime/doc C:/emacs/trunk/lisp c:/emacs/trunk/lisp/calc [...] c:/emacs/trunk/lisp/cedet C:/emacs/trunk/leim =C2=A0 =C2=A0 Juanma