GNU bug report logs - #15523
24.3.50; Package installed in an earlier (stable) version of Emacs errors if -autoloads.el calls an autoloaded function

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Fri, 4 Oct 2013 02:02:02 UTC

Severity: normal

Merged with 15235, 15272

Found in version 24.3.50

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50;
 Package installed in an earlier (stable) version of Emacs errors if
 -autoloads.el calls an autoloaded function
Date: Fri, 04 Oct 2013 05:01:15 +0300
...from that package.

Example:
https://github.com/nonsequitur/inf-ruby/pull/24#issuecomment-25595099

Or at least that's what I've been able to deduce.

Revision 112403 added load-path modification inside the autoloads file
(not sure why), and 114047 changed `package-activate-1' not to modify
load-path until after the autoloads file is loaded.

So, if a package was installed using Emacs predating 112403 (such as
24.2 and probably 24.3), and its autoloads call a function from it, it
will raise an error.

Not sure how big of a problem that is (autoloads' main purpose is to
defer loading, not to trigger it), but it's surprising for sure.




This bug report was last modified 9 years and 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.