From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Ludlam Newsgroups: gmane.emacs.bugs Subject: bug#18494: 24.4.50; defclass creates undocumented *-list-p function Date: Sun, 21 Sep 2014 12:37:02 -0400 Message-ID: References: <87a95xvfuy.fsf@tromey.com> <87bnqavaju.fsf@engster.org> <541DDB56.1020000@gmail.com> <541E0EEB.4020603@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a214ea68a55050395f16e X-Trace: ger.gmane.org 1411317518 21403 80.91.229.3 (21 Sep 2014 16:38:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2014 16:38:38 +0000 (UTC) Cc: 18494@debbugs.gnu.org, Tom Tromey , David Engster To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 21 18:38:30 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XVk9a-00066d-CN for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Sep 2014 18:38:26 +0200 Original-Received: from localhost ([::1]:40149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVk9X-0003e7-Ry for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Sep 2014 12:38:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVk9P-0003e1-AF for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2014 12:38:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVk9J-0004Zj-Bj for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2014 12:38:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVk9J-0004ZM-7h for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2014 12:38:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XVk9D-00038g-RC for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2014 12:38:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Ludlam Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Sep 2014 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18494 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18494-submit@debbugs.gnu.org id=B18494.141131742811993 (code B ref 18494); Sun, 21 Sep 2014 16:38:02 +0000 Original-Received: (at 18494) by debbugs.gnu.org; 21 Sep 2014 16:37:08 +0000 Original-Received: from localhost ([127.0.0.1]:47616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVk8J-00037M-Kr for submit@debbugs.gnu.org; Sun, 21 Sep 2014 12:37:08 -0400 Original-Received: from newk.interbax.net ([173.193.149.250]:37378) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVk8G-00036h-Tu for 18494@debbugs.gnu.org; Sun, 21 Sep 2014 12:37:05 -0400 X-No-Relay: not in my network Original-Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by newk.interbax.net (Postfix) with ESMTPSA id 47A8A93001A for <18494@debbugs.gnu.org>; Sun, 21 Sep 2014 10:37:03 -0600 (MDT) Original-Received: by mail-ie0-f169.google.com with SMTP id rp18so4179866iec.0 for <18494@debbugs.gnu.org>; Sun, 21 Sep 2014 09:37:02 -0700 (PDT) X-Received: by 10.50.109.228 with SMTP id hv4mr9364570igb.13.1411317422784; Sun, 21 Sep 2014 09:37:02 -0700 (PDT) Original-Received: by 10.64.243.38 with HTTP; Sun, 21 Sep 2014 09:37:02 -0700 (PDT) In-Reply-To: X-InterBax-MailScanner-Information: Please contact the ISP for more information X-InterBax-MailScanner-ID: 47A8A93001A.A9A13 X-InterBax-MailScanner: Found to be clean X-InterBax-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=1.001, required 3.8, ALL_TRUSTED -1.00, BAYES_00 2.00, HTML_MESSAGE 0.00) X-InterBax-MailScanner-SpamScore: s X-InterBax-MailScanner-From: eric@siege-engine.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93580 Archived-At: --089e013a214ea68a55050395f16e Content-Type: text/plain; charset=UTF-8 On Sun, Sep 21, 2014 at 12:20 PM, Stefan Monnier 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 --089e013a214ea68a55050395f16e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On S= un, Sep 21, 2014 at 12:20 PM, Stefan Monnier <monnier@iro.umontrea= l.ca> wrote:

> EIEIO will need to remove it's local copy of an old typep, and I c= ould
> certainly convert over to using something list (list foo).=C2=A0 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)
=C2=A0 ((subproj :initform nil
=C2=A0 =C2=A0:type list
=C2=A0 =C2=A0:documentation "Sub = projects controlled by this project.
For Automake based projects,= each directory is treated as a project.")
=C2=A0 =C2=A0(tar= gets :initarg :targets
=C2=A0 =C2=A0:type ede-target-list
=C2=A0 =C2=A0:custom (repeat (object :objec= tcreatefcn ede-new-target-custom))
=C2=A0 =C2=A0:label "Local Targets"
=C2=A0 =C2=A0:group = (targets)
=C2= =A0 =C2=A0:documentation "List of top level targets in this project.&q= uot;)


for "targets: you = will see:

:type ede-target-list

which will expand to ede-target-list-p, which is a test for a list o= f type ede-target.

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

Eric
=C2=A0
<= /div>
--089e013a214ea68a55050395f16e--