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





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.