From: Gary <help-gnu-emacs@garydjones.name>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp - only accepting input of known values
Date: Thu, 02 Dec 2010 08:28:15 +0100 [thread overview]
Message-ID: <id7hqf$u8m$1@dough.gmane.org> (raw)
In-Reply-To: 874oax33hp.fsf@guruji.demimonde
Tyler Smith wrote:
> Gary writes:
>> Tassilo Horn wrote:
>>> Gary 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.
>
> completing-read does this
Many thanks.
emacs
--
Gary (snowed in and frustrated in CH)
GNU Emacs 23.2.1 Please do NOT send me 'courtesy' replies off-list.
emacsclient 23.2
prev parent reply other threads:[~2010-12-02 7:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 9:05 elisp - only accepting input of known values Gary
2010-12-01 11:54 ` Tassilo Horn
2010-12-01 13:29 ` Gary
2010-12-01 15:40 ` Tassilo Horn
2010-12-01 15:41 ` Tyler Smith
2010-12-02 7:28 ` Gary [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='id7hqf$u8m$1@dough.gmane.org' \
--to=help-gnu-emacs@garydjones.name \
--cc=help-gnu-emacs@gnu.org \
/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.
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).