From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: type checking for arbitrary lisp objects Date: Sat, 12 Apr 2014 09:16:33 -0400 Message-ID: References: <15888.20727.131941.21320@gargle.gargle.HOWL> <53483E8E.50406@dancol.org> <16657.80762.790748.21320@gargle.gargle.HOWL> <46015.14104.213066.21320@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1397308632 6785 80.91.229.3 (12 Apr 2014 13:17:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2014 13:17:12 +0000 (UTC) Cc: Daniel Colascione , emacs-devel@gnu.org To: "Roland Winkler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 12 15:17:05 2014 Return-path: Envelope-to: ged-emacs-devel@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 1WYxns-0002TR-LW for ged-emacs-devel@m.gmane.org; Sat, 12 Apr 2014 15:17:04 +0200 Original-Received: from localhost ([::1]:34424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYxns-0006Q0-3j for ged-emacs-devel@m.gmane.org; Sat, 12 Apr 2014 09:17:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYxnj-0006P1-3O for emacs-devel@gnu.org; Sat, 12 Apr 2014 09:17:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYxnb-0004ju-Kd for emacs-devel@gnu.org; Sat, 12 Apr 2014 09:16:55 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:60133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYxnT-0004ia-LO; Sat, 12 Apr 2014 09:16:39 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s3CDGX4l028718; Sat, 12 Apr 2014 09:16:34 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4EE5160228; Sat, 12 Apr 2014 09:16:33 -0400 (EDT) In-Reply-To: <46015.14104.213066.21320@gargle.gargle.HOWL> (Roland Winkler's message of "Fri, 11 Apr 2014 22:32:15 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4910=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4910> : inlines <726> : streams <1157495> : uri <1727336> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171412 Archived-At: > I begin to understand how this is supposed to work. Is it also > possible to define more complex types recursively, similar to `list' > and `repeat' used by defcustom's :type keyword? My complete > knowledge about these cl functions is based on their info page, > which is somewhat brief. If you do a search for "clhs deftype" on your favorite search engine you should find the Common Lisp doc for that macro. The cl-lib version may not be 100% faithful, but it's usually pretty close, Stefan