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

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 27 Nov 2019 14:55:00 +0100

Stefan Monnier <[email-masked]> 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