GNU bug report logs - #22840
25.0.91; eieio clone creates objects with wrong name

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Sun, 28 Feb 2016 19:15:02 UTC

Severity: normal

Found in version 25.0.91

Fixed in version 26.2.50

Done: Vitalie Spinu <spinuvit <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Vitalie Spinu <spinuvit <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.91; eieio clone creates objects with wrong name 
Date: Sun, 28 Feb 2016 20:14:19 +0100
Hi,

With new "named" class I encounter the following problem:

(defclass AA (eieio-instance-inheritor eieio-named) ()
  "Soeme class")

(setq aa (AA "namedA"))
(eieio-object-name aa)
;"#<AA namedA>"
(eieio-object-name (clone aa "namedB"))
;"#<AA namedA>"
(eieio-object-name (clone aa "namedC"))
;"#<AA namedB>"

In other words clone memorises a name from the previous clone and uses
that during the object creation.



   Vitalie



In GNU Emacs 25.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7)
 of 2016-02-28 built on galago
Repository revision: 52f64cc2e74ab83752c8f2d37ef0fc6df5ef8b30
Windowing system distributor 'The X.Org Foundation', version 11.0.11702000
System Description:	Ubuntu 15.10




This bug report was last modified 6 years and 14 days ago.

Previous Next


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