From unknown Fri Jun 20 07:09:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16980 <16980@debbugs.gnu.org> To: bug#16980 <16980@debbugs.gnu.org> Subject: Status: eieio-generic-call shouldn't load libraries Reply-To: bug#16980 <16980@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:21 +0000 retitle 16980 eieio-generic-call shouldn't load libraries reassign 16980 emacs submitter 16980 Jonas Bernoulli severity 16980 normal tag 16980 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 10 14:36:03 2014 Received: (at submit) by debbugs.gnu.org; 10 Mar 2014 18:36:03 +0000 Received: from localhost ([127.0.0.1]:60554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WN53S-0006Nn-FE for submit@debbugs.gnu.org; Mon, 10 Mar 2014 14:36:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48386) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WN53P-0006NI-Fk for submit@debbugs.gnu.org; Mon, 10 Mar 2014 14:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN53F-00011d-KE for submit@debbugs.gnu.org; Mon, 10 Mar 2014 14:35:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN53F-00011Z-Hi for submit@debbugs.gnu.org; Mon, 10 Mar 2014 14:35:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN538-0005an-0W for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2014 14:35:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN52x-0000tW-7i for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2014 14:35:41 -0400 Received: from mail.hostpark.net ([212.243.197.30]:37918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN52x-0000sw-1y for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2014 14:35:31 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 0688C1714A for ; Mon, 10 Mar 2014 19:35:29 +0100 (CET) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id wSzg0TEfxeuN for ; Mon, 10 Mar 2014 19:35:28 +0100 (CET) Received: from lem (77-58-212-245.dclient.hispeed.ch [77.58.212.245]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPS id D7CA816CB9 for ; Mon, 10 Mar 2014 19:35:28 +0100 (CET) User-agent: mu4e 0.9.9.5; emacs 24.3.50.1 From: Jonas Bernoulli To: bug-gnu-emacs@gnu.org Subject: eieio-generic-call shouldn't load libraries Date: Mon, 10 Mar 2014 19:35:28 +0100 Message-ID: <87wqg1hpfz.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 16 15:41:03 2020 Received: (at 16980) by debbugs.gnu.org; 16 Aug 2020 19:41:03 +0000 Received: from localhost ([127.0.0.1]:58578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7OWd-0008Kb-7w for submit@debbugs.gnu.org; Sun, 16 Aug 2020 15:41:03 -0400 Received: from mail.hostpark.net ([212.243.197.30]:55818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7OWb-0008K4-JP for 16980@debbugs.gnu.org; Sun, 16 Aug 2020 15:41:02 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id E70A91610F for <16980@debbugs.gnu.org>; Sun, 16 Aug 2020 21:40:59 +0200 (CEST) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id GniHBkmWuLek for <16980@debbugs.gnu.org>; Sun, 16 Aug 2020 21:40:59 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id BBCF1160DD for <16980@debbugs.gnu.org.>; Sun, 16 Aug 2020 21:40:59 +0200 (CEST) From: Jonas Bernoulli To: 16980@debbugs.gnu.org Subject: Re: eieio-generic-call shouldn't load libraries In-Reply-To: <87wqg1hpfz.fsf@bernoul.li> References: <87wqg1hpfz.fsf@bernoul.li> Date: Sun, 16 Aug 2020 21:40:59 +0200 Message-ID: <877dtyv0ok.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16980 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jonas Bernoulli 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 16 15:54:16 2020 Received: (at 16980) by debbugs.gnu.org; 16 Aug 2020 19:54:17 +0000 Received: from localhost ([127.0.0.1]:58586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7OjQ-0002Ox-LJ for submit@debbugs.gnu.org; Sun, 16 Aug 2020 15:54:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7OjO-0002Og-Sa for 16980@debbugs.gnu.org; Sun, 16 Aug 2020 15:54:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4mb2wuYgObP14p2upE88JQUHJxL8y8eIyCw348Nuo3Q=; b=k35ed190Y1DBzaJ2RersqcQlzA jwM63SCfSttG3m6J5qVD01m3/E6DyTkKOMRYxo/GKQNcgLtiVUeh31EyOSLWE6wiEkduNlHMxrbYp sOg8IQyIlw/eI3wNe2VNyL3nInD8rKgroAXN+Qm5zYtGCxrEa5/f6ZYj9Pra2FA71D8Y=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7OjC-00085M-Uf; Sun, 16 Aug 2020 21:54:08 +0200 From: Lars Ingebrigtsen To: Jonas Bernoulli Subject: Re: bug#16980: eieio-generic-call shouldn't load libraries References: <87wqg1hpfz.fsf@bernoul.li> <877dtyv0ok.fsf@bernoul.li> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEUBAgEnMS1UYls4 SkKcp514hnz///9NkLG6AAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QIEBMiIdTTpD0AAAF8SURBVDjL vZNBcoMwDEVJMt1jfAGQ0D6WcoBOxuxbat//Kv0Q7ISZtJNu+pmxwc/Slww0zX+p3T8etvloPb2P iT4uzWDHvqO3suHc9722PZ1a0nPnaNhA13+6i7qhG9qRqBtUNuADnTyRtNx47s50OlaztvlVBwet wzPgnoPg/PNUP3mEF0+qevp1MLMNECQxxplW5TxXkDPW43QDJAWoDC4thEpIieCDlyw53fZTmmoq 55W17JdYQSIODsVIXhXj1lfOREqmSJ6nRxABxjiniAqmKcodoM6J1rriiipYlGNR2gN6Bq4JNhLv 2sC0gjBeDW3w0ssG5EpsyhIzfNNEJaLxRgOAjnJFETtwYTKciZnuTtf57kvVNH55ZyrVAxHIg5gE L1xKcwU3KSnPLDKXCLu96IUwAmBWwCaCe6AlcQVwYGMKhqlDk3ewlMlmeFsBm+jBHJmNB7eyChZr LKN/3AFw+eBKUUscgFZQlmG1B4fyn59C69oXP/g/6Bv0wWzDJd3VcAAAABBlWElmSUkqAAgAAAAA AAAAAAAAAJw8uSgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDgtMTZUMTk6MzQ6MzMrMDA6MDDk /ulLAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA4LTE2VDE5OjM0OjMzKzAwOjAwlaNR9wAAAABJ RU5ErkJggg== X-Now-Playing: Tuxedomoon's _Live in San Francisco (1979)_: "Fifth Column" Date: Sun, 16 Aug 2020 21:54:01 +0200 In-Reply-To: <877dtyv0ok.fsf@bernoul.li> (Jonas Bernoulli's message of "Sun, 16 Aug 2020 21:40:59 +0200") Message-ID: <87o8naqsdi.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jonas Bernoulli writes: > So this can be close. Thanks. OK; closed. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16980 Cc: 16980@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jonas Bernoulli writes: > So this can be close. Thanks. OK; closed. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 16 15:54:28 2020 Received: (at control) by debbugs.gnu.org; 16 Aug 2020 19:54:28 +0000 Received: from localhost ([127.0.0.1]:58589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Ojb-0002PL-U5 for submit@debbugs.gnu.org; Sun, 16 Aug 2020 15:54:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7OjZ-0002P8-Es for control@debbugs.gnu.org; Sun, 16 Aug 2020 15:54:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CPzrBPy3IcQvQ9vk3Bb3FF31dKFp338WEO7b+Fgn9G4=; b=MfSJjEK/Owt9cSKNUX1jdCGpnk sg3jr648Z33v4PpAiVbTf+Um4UzbSaWE8ciaf4qHMtUVep03IIcBQz687FX3K0xByutpcigJc+vs6 dwb4pMib6Xf+Ga6sherO33K2rqrq7yqD1ig3C1/cyP6titjfZKtzTKfmPNtg0+IU1GR8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7OjR-00085U-Jx for control@debbugs.gnu.org; Sun, 16 Aug 2020 21:54:19 +0200 Date: Sun, 16 Aug 2020 21:54:16 +0200 Message-Id: <87mu2uqsd3.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16980 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16980 fixed close 16980 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 16980 fixed close 16980 28.1 quit From unknown Fri Jun 20 07:09:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 Sep 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator