From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: RE: completing-read Date: Mon, 19 Feb 2007 09:46:49 -0800 Message-ID: References: <87ejomccmh.fsf@earthlink.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171907326 30119 80.91.229.12 (19 Feb 2007 17:48:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2007 17:48:46 +0000 (UTC) To: "John J Foerch" , Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 19 18:48:30 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HJCcm-0006JW-Vm for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2007 18:48:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJCcm-0003Sh-CI for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2007 12:48:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJCck-0003Sc-Ue for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2007 12:48:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJCci-0003SQ-I1 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2007 12:48:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJCci-0003SN-Bf for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2007 12:48:24 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HJCch-0000hQ-Tv for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2007 12:48:24 -0500 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l1JHmLBa017032; Mon, 19 Feb 2007 10:48:21 -0700 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l1JGvNCN012276; Mon, 19 Feb 2007 10:48:19 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by rcsmt251.oracle.com with ESMTP id 2461016271171907209; Mon, 19 Feb 2007 10:46:49 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87ejomccmh.fsf@earthlink.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15595 Archived-At: > The following code exhibits a behavior of completing-read that I > would call a bug. Or am I missing something? > > (let ((table '((foo . "you selected foo") > (foobar . "you selected foobar")))) > (completing-read "Symbol: " table nil 'require-match)) > > The unexpected behavior is that it is impossible to select `foo'. You need to use strings, not symbols, if you use an ALIST second argument to `completing-read': (let ((table '(("foo" . "you selected foo") ("foobar" . "you selected foobar")))) (completing-read "Symbol: " table nil 'require-match))