From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: completing-read displays duplicates in the *Completions* buffer Date: Tue, 20 Dec 2005 10:30:15 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135105765 21276 80.91.229.2 (20 Dec 2005 19:09:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 19:09:25 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 20 20:09:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eomr0-0007jb-TP for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 20:08:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eomru-00079h-V3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 14:09:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EolOd-0006M8-IK for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2005 12:35:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EolOb-0006LF-Nd for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2005 12:35:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EolOb-0006L1-1z for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2005 12:35:29 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EolRk-0005Au-IF for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2005 12:38:44 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EolLF-00080p-D6 for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2005 18:32:01 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Dec 2005 18:32:01 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Dec 2005 18:32:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en 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:14673 Archived-At: Stefan asked me to report this bug: In GNU Emacs 21.4.1 (i386-pc-solaris2.8, X toolkit, Xaw3d scroll bars) of 2005-09-21 on daedal configured using `configure --prefix=/opt/csw' Evaluate the following, then type `?' at the prompt: (completing-read "Prompt: " '(("a") ("b") ("c") ("a") ("b") ("c"))) The *Completions* buffer contents are: /--- | Click on a completion to select it. | In this buffer, type RET to select the completion near point. | | Possible completions are: | a a | b b | c c \--- Even if the code is changed to use eq strings or eq sublists, the duplicates are displayed: (let ((a "a") (b "b") (c "c")) (completing-read "Prompt: " (list (list a) (list b) (list c) (list a) (list b) (list c)))) (let ((a (list "a")) (b (list "b")) (c (list "c"))) (completing-read "Prompt: " (list a b c a b c))) -- Kevin Rodgers