From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#11658: 24.1; --no-site-lisp option doesn't work with custom locallisppath Date: Sat, 9 Jun 2012 13:39:24 +0200 Message-ID: <20435.13804.751034.676903@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339242054 23000 80.91.229.3 (9 Jun 2012 11:40:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2012 11:40:54 +0000 (UTC) To: 11658@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 13:40:52 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SdK28-0003X5-51 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2012 13:40:44 +0200 Original-Received: from localhost ([::1]:45095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdK27-0002vz-Vv for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2012 07:40:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdK24-0002vc-F5 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:40:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdK22-0004Vh-IQ for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:40:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdK22-0004Vb-FN for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:40:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SdK4M-0002Jr-GS for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jun 2012 11:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11658 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.13392421378860 (code B ref -1); Sat, 09 Jun 2012 11:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jun 2012 11:42:17 +0000 Original-Received: from localhost ([127.0.0.1]:35828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdK3a-0002Ij-Sm for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:42:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50556) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdK3W-0002IZ-QD for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:42:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdK1A-0004Fj-Fo for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:39:45 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:54659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdK1A-0004Fd-D1 for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:39:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdK17-0002pF-6y for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:39:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdK15-0004En-84 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:39:40 -0400 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:41169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdK14-0004EX-PD for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:39:39 -0400 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id q59BdPxS001072 for ; Sat, 9 Jun 2012 13:39:25 +0200 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.5/8.14.2) with ESMTP id q59BdOFi003985; Sat, 9 Jun 2012 13:39:24 +0200 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.5/8.14.5/Submit) id q59BdO8s003983; Sat, 9 Jun 2012 13:39:24 +0200 X-Mailer: VM 8.2.0b under 23.4.2 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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.13 Precedence: list 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:60806 Archived-At: This is a fallout from bug 11634; Eli Zaretskii has suggested to open a new bug report for it. Gentoo's ebuild [1] configures Emacs with (basically) --enable-locallisppath="/etc/emacs:/usr/share/emacs/site-lisp", because according to our policy user-configurable files like site-start.el should go to /etc, not /usr/share. However, the code that collects the site-lisp dirs in init_lread() will stop before the first element that doesn't contain "site-lisp" in its name: /* Remove "site-lisp" dirs from front of path temporarily and store them in sitelisp, then conc them on at the end so they're always first in path. Note that this won't work if you used a --enable-locallisppath element that does not happen to contain "site-lisp" in its name. */ sitelisp = Qnil; while (1) { tem = Fcar (Vload_path); tem1 = Fstring_match (build_string ("site-lisp"), tem, Qnil); if (!NILP (tem1)) { Vload_path = Fcdr (Vload_path); sitelisp = Fcons (tem, sitelisp); } else break; } In bug 10208 it was already suggested that lisppath and locallisppath (which are separate variables in configure) shouldn't be joined, but mapped to separate macros in epaths.h. (I would try to prepare a patch based on that approach, but I've looked at the code in init_lread and don't fully understand its intentions. For example, why is no_site_lisp ignored in the CANNOT_DUMP case? Do all four possible combinations of the "Vpurify_flag" and "initialized" flags occur?) [1]