emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom type `color' is not enforced


From: Lennart Borgman (gmail)
Subject: Re: custom type `color' is not enforced
Date: Thu, 20 Dec 2007 02:27:05 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Richard Stallman wrote:
I agree that these changes would be improvements.  However, I don't
think we have any way to test the validity of a regexp without
matching it, and matching it (even against a null string) could
cause an infinite loop.

The widget library already validates

  :type 'regexp

with the function (defun widget-regexp-validate (widget) ... ) which does (string-match regexp "").





reply via email to

[Prev in Thread] Current Thread [Next in Thread]