GNU bug report logs - #69739
30.0.50; `type-of` is not precise enough

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Mon, 11 Mar 2024 23:22:01 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Rudolf Schlatte <rudi <at> constantly.at>
Cc: 69739 <at> debbugs.gnu.org
Subject: bug#69739: 30.0.50; `type-of` is not precise enough
Date: Wed, 13 Mar 2024 18:10:09 -0400
>>  * Incompatible Changes in Emacs 30.1
>>  
>> +** 'type-of' sometimes returns more precise types.
>> +More specifically, for nil and t it returns 'null' and 'boolean'
>> +instead of just 'symbol' and for "subrs", it now returns one of
>> +'special-form', 'subr-primitive', or 'subr-native-elisp'.
>
> Is it true that in all cases, if `(type-of x)' used to return `foo'
> before the change, `(typep x 'foo)' still returns t after the change?
> If so, that might be worth mentioning, since it makes fixing broken code
> easier.

Yes.

But in any case, it seems we'll go with a different patch which leaves
`type-of` unchanged.


        Stefan





This bug report was last modified 1 year and 120 days ago.

Previous Next


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