From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Elpa packages and macro dependencies. Date: Fri, 17 Oct 2014 08:39:35 -0400 Message-ID: References: <8761fjsp2c.fsf@Rainer.invalid> <87y4sfgm52.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413549605 14301 80.91.229.3 (17 Oct 2014 12:40:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 12:40:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 17 14:39:58 2014 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 1Xf6p0-000765-MP for ged-emacs-devel@m.gmane.org; Fri, 17 Oct 2014 14:39:54 +0200 Original-Received: from localhost ([::1]:59806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf6p0-0005dx-B9 for ged-emacs-devel@m.gmane.org; Fri, 17 Oct 2014 08:39:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf6oq-0005d6-40 for emacs-devel@gnu.org; Fri, 17 Oct 2014 08:39:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xf6oi-0002J0-Km for emacs-devel@gnu.org; Fri, 17 Oct 2014 08:39:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf6oi-0002Iw-Ga for emacs-devel@gnu.org; Fri, 17 Oct 2014 08:39:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="94438369" Original-Received: from 69-196-168-232.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Oct 2014 08:39:35 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B5860859B; Fri, 17 Oct 2014 08:39:35 -0400 (EDT) In-Reply-To: <87y4sfgm52.fsf@Rainer.invalid> (Achim Gratz's message of "Fri, 17 Oct 2014 10:01:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:175518 Archived-At: > Again, this in particular is only really a problem for built-in packages > since there's no way to make Emacs completely forget about the built-in > package when you happen to install a newer version of it via ELPA later > on. When an autoloaded function is moved into a different file in the > new version, the new autoload definition is ignored (because there > already is one) and if you try to invoke the function the wrong file > gets loaded so it doesn't work (the original autoload definition is > always read during Emacs' startup). That doesn't sound right: ELISP> (autoload 'sm-foo "toto") (autoload "toto" nil nil nil) ELISP> (autoload 'sm-foo "titi") (autoload "titi" nil nil nil) ELISP> (symbol-function 'sm-foo) (autoload "titi" nil nil nil) ELISP> Clearly, the second autoload overrides the first. I think that the problem only shows up if your autoloaded functions has already been loaded, in which case `autoload' doesn't do anything. Stefan