From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.devel Subject: RFE: require and load-path-shadowing Date: Thu, 10 Jan 2013 22:07:53 +0100 Organization: Linux Private Site Message-ID: <87sj68eogm.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357852098 30352 80.91.229.3 (10 Jan 2013 21:08:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 21:08:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 10 22:08:36 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtPMZ-0003Fb-UD for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2013 22:08:36 +0100 Original-Received: from localhost ([::1]:60534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtPMK-0007bU-0p for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2013 16:08:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtPMD-0007aB-9X for emacs-devel@gnu.org; Thu, 10 Jan 2013 16:08:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtPM8-0000bA-Pd for emacs-devel@gnu.org; Thu, 10 Jan 2013 16:08:13 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:53329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtPM8-0000b0-Ip for emacs-devel@gnu.org; Thu, 10 Jan 2013 16:08:08 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TtPML-0002yv-BI for emacs-devel@gnu.org; Thu, 10 Jan 2013 22:08:21 +0100 Original-Received: from pd9eb57df.dip.t-dialin.net ([217.235.87.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jan 2013 22:08:21 +0100 Original-Received: from Stromeko by pd9eb57df.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jan 2013 22:08:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb57df.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.91 (gnu/linux) Cancel-Lock: sha1:G7gZjeRBbftMGonydKQYLw5pJsI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156198 Archived-At: 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