From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp - only accepting input of known values
Date: Wed, 01 Dec 2010 16:40:25 +0100 [thread overview]
Message-ID: <87y689jyc6.fsf@member.fsf.org> (raw)
In-Reply-To: id5ijr$67a$1@dough.gmane.org
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
next prev parent reply other threads:[~2010-12-01 15:40 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 [this message]
2010-12-01 15:41 ` Tyler Smith
2010-12-02 7:28 ` Gary
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=87y689jyc6.fsf@member.fsf.org \
--to=tassilo@member.fsf.org \
--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).