[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defcustom: order matters in `choice' with value-to-internal
From: |
Reiner Steib |
Subject: |
Re: defcustom: order matters in `choice' with value-to-internal |
Date: |
Sun, 23 Mar 2008 22:41:08 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.92 (gnu/linux) |
On Sat, Mar 22 2008, Stefan Monnier wrote:
>> Order generally matters, the first matching choice is used. There is
>> nothing else that favors the repeat over regexp.
>
> But AFAICT the only difference between the two is the order between
> (const nil ..) and (repeat ...): the ordering between `repeat' and
> `regexp' is the same in both cases, so it still looks odd.
No, the order of `repeat regexp' and `regexp' is different:
(defcustom rs-test-1
[...]
:type '(choice
(const nil)
regexp
(repeat [...] regexp)))
(defcustom rs-test-2
[...]
:type '(choice
(repeat [...] regexp)
(const nil)
regexp))
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/