emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RFE: require and load-path-shadowing


From: Achim Gratz
Subject: RFE: require and load-path-shadowing
Date: Thu, 10 Jan 2013 22:07:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.91 (gnu/linux)

There is currently a problem with package manager when a package is
installed from a package archive,that package is already installed
either in Emacs core or site-lisp, and when (parts of) said package have
already been loaded when ELPA tries to install: the byte-compiler will
use the already loaded definitions rather than the new ones from the
package to install.

Since this would seem a more general problem, I suggest that in a
situation similar to this:

(feature-file 'org-macs)
=> "/usr/local/share/emacs/site-lisp/org/org-macs.elc"
(find-library-name "org-macs")
=> "/home/lisp/org-mode/lisp/org-macs.el"

a subsequent (require 'org-macs) should not simply return "t", but
actually load the required feature again from the current load-path, at
least as an option (when require-reload-shadowed-feature bound to true
or something like that).  A workaround in package manager would need to
check and modify the features variable, which doesn't seem the right
thing to do.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




reply via email to

[Prev in Thread] Current Thread [Next in Thread]