GNU bug report logs - #77725
31.0.50; Add support for types accepted by `cl-typep' to cl-generic?

Previous Next

Package: emacs;

Reported by: David Ponce <da_vid <at> orange.fr>

Date: Fri, 11 Apr 2025 07:16:01 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: David Ponce <da_vid <at> orange.fr>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 77725 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#77725: 31.0.50; Add support for types accepted by `cl-typep' to cl-generic?
Date: Wed, 14 May 2025 10:47:57 +0200
On 2025-05-14 04:39, Stefan Monnier wrote:
>> -  (unless (fboundp 'cl--define-derived-type)
>> +  (when (fboundp 'cl--define-derived-type)
> 
> Duh!
> 
> 
>          Stefan
> 

It's better now, thanks for committing the fix. But I'm still not sure
about the current behavior.

After "make bootstrap", run "emacs -Q" and evaluate the below recipe
in the *scratch* buffer:

cl--derived-type-list
=> nil

(require 'cl-lib)
=> cl-lib

cl--derived-type-list
=> nil

(require 'cl-macs)
=> cl-macs

cl--derived-type-list
=> (real command keyword extended-char base-char character natnum)

So, to create the predefined derived types, it seems that cl-macs
needs to be explicitly loaded. I wonder if this is the expected
behavior?

David




This bug report was last modified 10 days ago.

Previous Next


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