unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Andreas Schwab <schwab@suse.de>
Cc: emacs-devel@gnu.org
Subject: Re: defcustom: order matters in `choice' with value-to-internal
Date: Sun, 23 Mar 2008 21:23:00 -0400	[thread overview]
Message-ID: <jwvskyg6hmm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <v9r6e115l7.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sun, 23 Mar 2008 22:41:08 +0100")

>>> 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:

Duh!  Sorry!  Victim of my auto-unwrap hack, which hid the `regexp'
entry at the end of the (const ...) lines


        Stefan




      reply	other threads:[~2008-03-24  1:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-21 20:27 defcustom: order matters in `choice' with value-to-internal Reiner Steib
2008-03-21 21:49 ` Andreas Schwab
2008-03-22  9:22   ` Reiner Steib
2008-03-22 17:10   ` Stefan Monnier
2008-03-23 21:41     ` Reiner Steib
2008-03-24  1:23       ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvskyg6hmm.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).