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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jonas Bernoulli <jonas@HIDDEN>; dated Mon, 10 Mar 2014 18:37:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Mar 2014 18:36:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 10 14:36:03 2014
Received: from localhost ([127.0.0.1]:60554 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WN53S-0006Nn-FE
	for submit <at> 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 <jonas@HIDDEN>) id 1WN53P-0006NI-Fk
 for submit <at> 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 <jonas@HIDDEN>) id 1WN53F-00011d-KE
 for submit <at> 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 <jonas@HIDDEN>) id 1WN53F-00011Z-Hi
 for submit <at> 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 <jonas@HIDDEN>) id 1WN538-0005an-0W
 for bug-gnu-emacs@HIDDEN; Mon, 10 Mar 2014 14:35:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jonas@HIDDEN>) id 1WN52x-0000tW-7i
 for bug-gnu-emacs@HIDDEN; 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 <jonas@HIDDEN>) id 1WN52x-0000sw-1y
 for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>;
 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 <bug-gnu-emacs@HIDDEN>; Mon, 10 Mar 2014 19:35:28 +0100 (CET)
User-agent: mu4e 0.9.9.5; emacs 24.3.50.1
From: Jonas Bernoulli <jonas@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: eieio-generic-call shouldn't load libraries
Date: Mon, 10 Mar 2014 19:35:28 +0100
Message-ID: <87wqg1hpfz.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Acknowledgement sent to Jonas Bernoulli <jonas@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16980; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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