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: Eric Ludlam <eric <at> siege-engine.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18494 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>, David Engster <deng <at> randomsample.de>
Subject: bug#18494: 24.4.50; defclass creates undocumented *-list-p function
Date: Sun, 21 Sep 2014 12:37:02 -0400
[Message part 1 (text/plain, inline)]
On Sun, Sep 21, 2014 at 12:20 PM, Stefan Monnier <monnier <at> iro.umontreal.ca>
wrote:

>
> > EIEIO will need to remove it's local copy of an old typep, and I could
> > certainly convert over to using something list (list foo).  I use
> > those predicates mostly with typep.
>
> 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:

(defclass ede-project (ede-project-placeholder)
  ((subproj :initform nil
    :type list
    :documentation "Sub projects controlled by this project.
For Automake based projects, each directory is treated as a project.")
   (targets :initarg :targets
    :type ede-target-list
    :custom (repeat (object :objectcreatefcn ede-new-target-custom))
    :label "Local Targets"
    :group (targets)
    :documentation "List of top level targets in this project.")


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.

This also occurs semantic/db.e which tracks a list of tables, and in
cogre.el, where the graph tracks a list of graph elements.

Eric
[Message part 2 (text/html, inline)]

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.