all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ulrich Mueller <ulm@gentoo.org>
To: 11658@debbugs.gnu.org
Subject: bug#11658: 24.1; --no-site-lisp option doesn't work with custom locallisppath
Date: Sat, 9 Jun 2012 13:39:24 +0200	[thread overview]
Message-ID: <20435.13804.751034.676903@a1i15.kph.uni-mainz.de> (raw)

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] <http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-editors/emacs/emacs-24.1_rc.ebuild?revision=1.1&view=markup>





             reply	other threads:[~2012-06-09 11:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-09 11:39 Ulrich Mueller [this message]
2012-06-30 21:24 ` bug#11658: 24.1; --no-site-lisp option doesn't work with custom locallisppath Glenn Morris

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=20435.13804.751034.676903@a1i15.kph.uni-mainz.de \
    --to=ulm@gentoo.org \
    --cc=11658@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.