[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elisp - only accepting input of known values
From: |
Tassilo Horn |
Subject: |
Re: elisp - only accepting input of known values |
Date: |
Wed, 01 Dec 2010 16:40:25 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Gary <help-gnu-emacs@garydjones.name> writes:
>>> Is it somehow possible to accept input from a set of known values
>>> (and only those values), possibly based on regex but I'm not married
>>> to that idea?
>>
>> What exactly do you mean with "input"? Input to what? A function?
>
> User input.
Wow, that is too specific. :-)
But if you mean completion in the minibuffer, have a look at
`completing-read'.
Bye,
Tassilo