From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: custom type `color' is not enforced Date: Thu, 20 Dec 2007 11:27:09 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198178897 15923 80.91.229.12 (20 Dec 2007 19:28:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Dec 2007 19:28:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 20 20:28:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J5R4H-0001HP-9E for ged-emacs-devel@m.gmane.org; Thu, 20 Dec 2007 20:28:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5R3x-0006o3-BU for ged-emacs-devel@m.gmane.org; Thu, 20 Dec 2007 14:28:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J5R3t-0006mK-KF for emacs-devel@gnu.org; Thu, 20 Dec 2007 14:28:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J5R3r-0006ib-Pj for emacs-devel@gnu.org; Thu, 20 Dec 2007 14:28:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5R3r-0006iC-Bj for emacs-devel@gnu.org; Thu, 20 Dec 2007 14:28:03 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J5R3n-0001bp-1U; Thu, 20 Dec 2007 14:27:59 -0500 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id lBKJRuTJ008699; Thu, 20 Dec 2007 12:27:56 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lBKAHmj9029298; Thu, 20 Dec 2007 12:27:55 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt351.oracle.com with ESMTP id 3456736551198178829; Thu, 20 Dec 2007 11:27:09 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85313 Archived-At: I wrote: > With substring matching and using `C-u' with `C-h M-o', I can see > candidate options whose current value satisfies a `type' > definition that includes "string" - that means type definitions > such as these: > > (choice (string :tag "Show candidate plus a WYSIWYG swatch with text..." > :value "MMMM") > (const :tag "Show candidate itself using WYSIWYG" t) > (const :tag "Show candidate as is, with no text properties" nil)) > > (repeat (list string (choice (const :tag "None" nil) (string :tag > "Match regexp")) (choice (const :tag "None" nil) (string :tag > "No-match regexp")) (choice (const :tag "None" nil) (function > :tag "Predicate")) (choice (const :tag "None" nil) (repeat > (string :tag "Extra buffer"))) (choice (const :tag "None" nil) > (function :tag "Sort function")))) Sorry; I mistakenly sent that before I was ready. My new Dell Latitude 620 has a glitch that it randomly flips into a mode where either Shift or Control is automatically on, so, for instance, hitting the `s' key really does `S' or `C-s'. Aggravating, and downright risky sometimes. Anyway, I meant to format that last part: (repeat (list string (choice (const :tag "None" nil) (string :tag "Match regexp")) (choice (const :tag "None" nil) (string :tag "No-match regexp")) (choice (const :tag "None" nil) (function :tag "Predicate")) (choice (const :tag "None" nil) (repeat (string :tag "Extra buffer"))) (choice (const :tag "None" nil) (function :tag "Sort function")))) And I meant to point out that a type def that simply includes "string" somewhere is not necessarily a type def that uses type `string' as one of its components ("string" might be in a :tag string, for instance). IOW, this isn't a substitute for being able to check subtypes and aggregation type components.