GNU bug report logs - #18494
24.4.50; defclass creates undocumented *-list-p function

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Thu, 18 Sep 2014 02:11:02 UTC

Severity: minor

Tags: moreinfo

Found in version 24.4.50

Fixed in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eric Ludlam <ericludlam <at> gmail.com>, Tom Tromey <tom <at> tromey.com>, 18494 <at> debbugs.gnu.org, David Engster <deng <at> randomsample.de>, Eric Ludlam <eric <at> siege-engine.com>
Subject: bug#18494: 24.4.50; defclass creates undocumented *-list-p function
Date: Mon, 31 Jan 2022 16:33:19 +0100
Stefan Monnier <monnier <at> 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 <at> 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




This bug report was last modified 3 years and 113 days ago.

Previous Next


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