all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* why is site-lisp placed before the default load path?
@ 2016-08-01 16:24 Alex Dunn
  2016-08-01 16:39 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Dunn @ 2016-08-01 16:24 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]

Right now, `init_lread` in lread.c creates the initial load path by
concatenating PATH_SITELOADSEARCH and PATH_LOADSEARCH, in that order.
Since subdirs.el searches recursively and adds everything to the load-path,
if I install (for example), realgud into site-lisp, things break because a
number of Emacs' own libraries are shadowed by realgud's language and
utility modules:
- https://github.com/realgud/realgud/tree/master/realgud/common
- https://github.com/realgud/realgud/tree/master/realgud/lang

Looking through the code history, this order has been deliberately
maintained for well over a decade, but what's the reason for letting core
libraries be overridden like this?  Unless I'm missing something it seems
safer to ensure that Emacs' own stuff is always at the front of the
load-path at launch.  If I want, say, a newer version of Org, I can always
manually prepend a different location to the load-path.

Would the maintainers be open to considering changing the order of the
load-path?

[-- Attachment #2: Type: text/html, Size: 1270 bytes --]

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

end of thread, other threads:[~2016-08-02 20:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-01 16:24 why is site-lisp placed before the default load path? Alex Dunn
2016-08-01 16:39 ` Eli Zaretskii
2016-08-01 17:19   ` Alex Dunn
2016-08-01 17:54     ` Robert Weiner
2016-08-01 18:15       ` Alex Dunn
2016-08-02 17:35         ` James Cloos
2016-08-02 18:35           ` Robert Weiner
2016-08-02 20:07             ` James Cloos
2016-08-02 20:47               ` Robert Weiner
2016-08-02  0:25       ` Clément Pit--Claudel
2016-08-02 14:58       ` Stefan Monnier

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.