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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16980 in the body.
You can then email your comments to 16980 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16980; Package emacs. (Mon, 10 Mar 2014 18:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonas Bernoulli <jonas <at> bernoul.li>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 10 Mar 2014 18:37:02 GMT) Full text and rfc822 format available.

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

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: bug-gnu-emacs <at> gnu.org
Subject: 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16980; Package emacs. (Sun, 16 Aug 2020 19:42:01 GMT) Full text and rfc822 format available.

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

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: 16980 <at> debbugs.gnu.org
Subject: Re: eieio-generic-call shouldn't load libraries
Date: Sun, 16 Aug 2020 21:40:59 +0200
Jonas Bernoulli <jonas <at> bernoul.li> writes:

> 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 function does not exist anymore and this behavior does not appear
to have survived all the major refactorings.  I also tried to reproduce
the old behavior, but that too indicates that the issue is gone:

,----
| (cl-defmethod testibus ((arg (eql battery)))
|   arg)
| 
| (list (featurep 'battery)
|       (testibus 'battery)
|       (featurep 'battery)
|       (require  'battery))
| => (nil battery nil battery)
`----

So this can be close.  Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16980; Package emacs. (Sun, 16 Aug 2020 19:55:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jonas Bernoulli <jonas <at> bernoul.li>
Cc: 16980 <at> debbugs.gnu.org
Subject: Re: bug#16980: eieio-generic-call shouldn't load libraries
Date: Sun, 16 Aug 2020 21:54:01 +0200
Jonas Bernoulli <jonas <at> bernoul.li> writes:

> So this can be close.  Thanks.

OK; closed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 16 Aug 2020 19:55:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 16980 <at> debbugs.gnu.org and Jonas Bernoulli <jonas <at> bernoul.li> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 16 Aug 2020 19:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 14 Sep 2020 11:24:08 GMT) Full text and rfc822 format available.

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.