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: Sat, 20 Sep 2014 19:34:03 -0400 Message-ID: <541E0EEB.4020603@gmail.com> References: <87a95xvfuy.fsf@tromey.com> <87bnqavaju.fsf@engster.org> <541DDB56.1020000@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1411257162 1014 80.91.229.3 (20 Sep 2014 23:52:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2014 23:52:42 +0000 (UTC) Cc: 18494@debbugs.gnu.org, Tom Tromey , David Engster , Eric Ludlam To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 21 01:52:34 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 1XVUS3-0006Nl-3W for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Sep 2014 01:52:27 +0200 Original-Received: from localhost ([::1]:36377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVUS2-00039k-Iz for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Sep 2014 19:52:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVURs-00032Z-9g for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 19:52:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVURk-0006lK-Jb for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 19:52:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVURk-0006kB-Er for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 19:52:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XVUBC-0001t1-HC for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 19:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Ludlam Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Sep 2014 23:35: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.14112560487180 (code B ref 18494); Sat, 20 Sep 2014 23:35:02 +0000 Original-Received: (at 18494) by debbugs.gnu.org; 20 Sep 2014 23:34:08 +0000 Original-Received: from localhost ([127.0.0.1]:46908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVUAK-0001rj-2E for submit@debbugs.gnu.org; Sat, 20 Sep 2014 19:34:08 -0400 Original-Received: from mail-qc0-f171.google.com ([209.85.216.171]:50676) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVUAH-0001rb-UJ for 18494@debbugs.gnu.org; Sat, 20 Sep 2014 19:34:06 -0400 Original-Received: by mail-qc0-f171.google.com with SMTP id x3so4759007qcv.16 for <18494@debbugs.gnu.org>; Sat, 20 Sep 2014 16:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=7MlbBdLhhCgh3waXVolCCnXbreL78TK1uvP+UaTFj8o=; b=DMXqNKaP1JIbxhkDG5H2kDKnOO1JP9/sKn5FIb/5crVLxvpn3K4oHZnlI+c2K7Tiff Ob2lASgl4Hx8YLYqzT+IJF3WVCfjPKjKVEElaDdcdDNynPew0TYVBRdrriNIw0wWWr/i su/T3tow3Dln1fL9n1rlniqPnChA/R2muisY1czoZOnsYkwZ+v0uCs0l3mxeD0jLJMKG TkD593JY7p4+bKOEthaRnLRczTyDTyVfajIJSYbNU5GPhGsTQ8n6R2cc+RBk1ySBqIy0 HafuVgFd2rOPYb+Sjca+XeOKgcW4Z8zTpXadPSxZatBOfDoxxzxMvjczfw0EJg6ZgDf1 C2Wg== X-Received: by 10.224.88.71 with SMTP id z7mr128931qal.94.1411256045185; Sat, 20 Sep 2014 16:34:05 -0700 (PDT) Original-Received: from [192.168.1.201] (pool-71-184-209-46.bstnma.fios.verizon.net. [71.184.209.46]) by mx.google.com with ESMTPSA id d8sm4562268qam.46.2014.09.20.16.34.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 20 Sep 2014 16:34:04 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20091222 Shredder/3.1a1pre In-Reply-To: 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:93564 Archived-At: On 09/20/2014 07:08 PM, Stefan Monnier wrote: >> Technically, I could hand write a few of those predicates for the EDE >> loader, but I thought it would be generally useful, especially if other folk >> want to save their objects. I'm not sure how widely used it is outside of >> EDE, semanticdb, and cogre which all have save files. I certainly think it >> should be documented if consensus is that it stays. Perhaps an extra option >> for the defclass to add extra predicates along >> with :method-invocation-order. > My natural reaction is to say that those *-list-p predicates shouldn't > be automatically created, but could someone explain to me in detail > how/where they're used? > E.g. I hear it's used for types, but can't we use a type like (list foo) > instead of foo-list (or maybe (cl-every foo-p) instead of foo-list-p)? > I recall back in the day trying something like (list foo) and not getting it right so I just wrote a predicate. I'm not that familiar with the nuances of typep, but if there is now a typep built into Emacs, 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. In that case, the eieio-persistent baseclass will need to be updated to extract desired classes from the predicates correctly. The other occurrences would be easier to swap in new values. Eric