[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
limit input allowed by read-from-minibuffer?
From: |
bturnip |
Subject: |
limit input allowed by read-from-minibuffer? |
Date: |
23 Feb 2006 13:39:20 -0800 |
User-agent: |
G2/0.2 |
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 "<"))
)