GNU bug report logs - #16980
eieio-generic-call shouldn't load libraries

Previous Next

Package: emacs;

Reported by: Jonas Bernoulli <jonas <at> bernoul.li>

Date: Mon, 10 Mar 2014 18:37:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: 16980 <at> debbugs.gnu.org
Subject: bug#16980: eieio-generic-call shouldn't load libraries
Date: Mon, 10 Mar 2014 19:35:28 +0100
eieio-generic-call loads the respective library when the first method
argument is a symbol which also happens to be the name of an autoloaded
function.  This is justifies like this:

    Is the class passed in autoloaded?
    Since class names are also constructors, they can be autoloaded
    via the autoload command.  Check for this, and load them in.
    It is ok if it doesn't turn out to be a class.  Probably want that
    function loaded anyway.

That assumption isn't always true.  E.g. I have written a little tool
that deals with Elisp libraries.  Some of methods are not only
implemented for objects that represent libraries but also for symbols
which stand for such libraries.  I was very surprised when calling these
methods started to load libraries.

  Best regards,
  Jonas




This bug report was last modified 4 years and 279 days ago.

Previous Next


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