all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#11658: 24.1; --no-site-lisp option doesn't work with custom locallisppath
@ 2012-06-09 11:39 Ulrich Mueller
  2012-06-30 21:24 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Mueller @ 2012-06-09 11:39 UTC (permalink / raw
  To: 11658

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>





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#11658: 24.1; --no-site-lisp option doesn't work with custom locallisppath
  2012-06-09 11:39 bug#11658: 24.1; --no-site-lisp option doesn't work with custom locallisppath Ulrich Mueller
@ 2012-06-30 21:24 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-06-30 21:24 UTC (permalink / raw
  To: 11658-done

Version: 24.2

Hopefully fixed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-30 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-09 11:39 bug#11658: 24.1; --no-site-lisp option doesn't work with custom locallisppath Ulrich Mueller
2012-06-30 21:24 ` Glenn Morris

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.