unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-devel@gnu.org
Subject: RFE: require and load-path-shadowing
Date: Thu, 10 Jan 2013 22:07:53 +0100	[thread overview]
Message-ID: <87sj68eogm.fsf@Rainer.invalid> (raw)


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	other threads:[~2013-01-10 21:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 21:07 Achim Gratz [this message]
2013-01-10 23:43 ` RFE: require and load-path-shadowing Glenn Morris
2013-01-11  8:21   ` Achim Gratz
2013-01-20  7:38   ` Achim Gratz
2013-01-20 20:17     ` Glenn Morris
2013-01-21  6:53       ` Achim Gratz

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sj68eogm.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).