GNU bug report logs - #38365
26.3; The info doc of eieio-class-name is outdated and its value looks incorrect

Previous Next

Package: emacs;

Reported by: Xu Chunyang <xuchunyang56 <at> gmail.com>

Date: Mon, 25 Nov 2019 21:33:37 UTC

Severity: minor

Tags: fixed

Merged with 38374

Found in version 26.3

Fixed in version 27.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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 38365 <at> debbugs.gnu.org, Xu Chunyang <xuchunyang56 <at> gmail.com>
Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect
Date: Wed, 27 Nov 2019 14:55:00 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> I've now updated the manual to say what it really returns now, but it's
>> not a very useful function.  :-)  (I mean, it just returns its argument.)
>
> It returns its argument only if its argument was a class name.
> It's more useful when its argument is a class object (or when you don't
> know which of the two it will be).

(eieio-class-name (make-instance 'my-class))
=>
Debugger entered--Lisp error: (wrong-type-argument eieio--class #<my-class my-class-158f4e54cbbc> class)
  signal(wrong-type-argument (eieio--class #<my-class my-class-158f4e54cbbc> class))
  eieio-class-name(#<my-class my-class-158f4e54cbbc>)
  eval((eieio-class-name (make-instance 'my-class)) t)

On the other hand:

(eieio-object-class-name (make-instance 'my-class))
=> my-class

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




This bug report was last modified 5 years and 174 days ago.

Previous Next


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