[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18494: 24.4.50; defclass creates undocumented *-list-p function
From: |
Lars Ingebrigtsen |
Subject: |
bug#18494: 24.4.50; defclass creates undocumented *-list-p function |
Date: |
Mon, 31 Jan 2022 16:33:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 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")))
Sorry; should have checked first.
Eric Ludlam <eric@siege-engine.com> writes:
> Could someone explain (and show) to me in detail how/where these
> foo-list-p are used in relation to EIEIO?
>
> Sure, in ede/base.el, you will find these lines:
[...]
> for "targets: you will see:
>
> :type ede-target-list
>
> which will expand to ede-target-list-p, which is a test for a list of type
> ede-target.
And this has been fixed, so I guess there's nothing to do here (beyond
removing the -list-p predicates when we start removing things obsoleted
in 25.1 in a couple of years), and I'm therefore closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no