[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18494: 24.4.50; defclass creates undocumented *-list-p function
From: |
Stefan Monnier |
Subject: |
bug#18494: 24.4.50; defclass creates undocumented *-list-p function |
Date: |
Sun, 30 Jan 2022 21:34:31 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> This was seven years ago, and apparently defclass still creates the
> undocumented -list-p functions. Is the consensus that they should be
> removed? Perhaps we should generate them as obsolete functions, to
> allow third-party usages of them to be notified?
AFAIK that's already what we do:
(when eieio-backward-compatibility
(let ((csym (intern (concat (symbol-name cname) "-list-p"))))
(defalias csym
[...]
(make-obsolete csym (format
"use (cl-typep ... \\='(list-of %s)) instead"
cname)
"25.1")))
-- Stefan