From: "bturnip" <bturnip@gmail.com>
Subject: limit input allowed by read-from-minibuffer?
Date: 23 Feb 2006 13:39:20 -0800 [thread overview]
Message-ID: <1140730760.877986.48650@i39g2000cwa.googlegroups.com> (raw)
I want to prompt for a value in the minibuffer and only accept the
input if it matches one of the choices presented in my prompt string.
How do I do this?
(defun example()
(interactive)
(setq read_method(read-from-minibuffer "Read Method?
[<,>,>>,+<,+>,+>>] " nil nil nil nil "<"))
)
next reply other threads:[~2006-02-23 21:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-23 21:39 bturnip [this message]
2006-02-23 23:30 ` limit input allowed by read-from-minibuffer? B. T. Raven
2006-02-24 19:45 ` bturnip
-- strict thread matches above, loose matches on Subject: below --
2006-02-23 21:38 bturnip
2006-02-24 22:28 ` Drew Adams
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=1140730760.877986.48650@i39g2000cwa.googlegroups.com \
--to=bturnip@gmail.com \
/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).