From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "bturnip" Newsgroups: gmane.emacs.help Subject: limit input allowed by read-from-minibuffer? Date: 23 Feb 2006 13:38:57 -0800 Organization: http://groups.google.com Message-ID: <1140730737.029372.218440@z34g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1140819798 18351 80.91.229.2 (24 Feb 2006 22:23:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2006 22:23:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 23:23:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FClLD-0007A5-Fm for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Feb 2006 23:23:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FClLC-0001kn-Jk for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Feb 2006 17:23:10 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!z34g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Original-NNTP-Posting-Host: 198.160.96.7 Original-X-Trace: posting.google.com 1140730743 18716 127.0.0.1 (23 Feb 2006 21:39:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 23 Feb 2006 21:39:03 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z34g2000cwc.googlegroups.com; posting-host=198.160.96.7; posting-account=W5tcsg0AAADUNMMlUFSwh5XRtGESRTXx Original-Xref: shelby.stanford.edu gnu.emacs.help:137762 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33386 Archived-At: 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 "<")) )