unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* limit input allowed by read-from-minibuffer?
@ 2006-02-23 21:38 bturnip
  2006-02-24 22:28 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: bturnip @ 2006-02-23 21:38 UTC (permalink / 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 "<"))
)

^ permalink raw reply	[flat|nested] 5+ messages in thread
* limit input allowed by read-from-minibuffer?
@ 2006-02-23 21:39 bturnip
  2006-02-23 23:30 ` B. T. Raven
  0 siblings, 1 reply; 5+ messages in thread
From: bturnip @ 2006-02-23 21:39 UTC (permalink / 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 "<"))
)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-24 22:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 21:38 limit input allowed by read-from-minibuffer? bturnip
2006-02-24 22:28 ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2006-02-23 21:39 bturnip
2006-02-23 23:30 ` B. T. Raven
2006-02-24 19:45   ` bturnip

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).