From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jeff Dwork" Newsgroups: gmane.emacs.bugs Subject: facemenu-read-color should not be case-sensitive Date: Fri, 8 Jul 2005 13:33:37 -0700 Message-ID: <17102.58145.868201.107878@lx-desk84.amd.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120855487 7004 80.91.229.2 (8 Jul 2005 20:44:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2005 20:44:47 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 08 22:44:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dqzgx-0003li-Mn for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jul 2005 22:43:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqziO-0001YE-F6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jul 2005 16:44:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dqzi6-0001Lj-7D for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2005 16:44:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dqzi1-0001JL-0g for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2005 16:44:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dqzhz-0001DD-VF for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2005 16:44:28 -0400 Original-Received: from [139.95.251.6] (helo=amdext3.amd.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DqzeW-000778-1C for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2005 16:40:52 -0400 Original-Received: from SSVLGW02.amd.com (ssvlgw02.amd.com [139.95.250.170]) by amdext3.amd.com (8.12.11/8.12.11/AMD) with ESMTP id j68KXQBH021316 for ; Fri, 8 Jul 2005 13:33:51 -0700 Original-Received: from 139.95.250.1 by SSVLGW02.amd.com with ESMTP (AMD SMTP Relay (Email Firewall v6.1.0)); Fri, 08 Jul 2005 13:33:39 -0700 X-Server-Uuid: 519AC16A-9632-469E-B354-112C592D09E8 Original-Received: from cmdmail.amd.com (cmdmail.amd.com [172.28.9.121]) by amdint.amd.com (8.12.8/8.12.8/AMD) with ESMTP id j68KXcVo007624 for ; Fri, 8 Jul 2005 13:33:39 -0700 (PDT) Original-Received: from lx-desk84.amd.com.amd.com (lx-desk84.amd.com [172.28.12.106]) by cmdmail.amd.com (8.11.6/8.11.6) with ESMTP id j68KXe914168 for ; Fri, 8 Jul 2005 13:33:40 -0700 (PDT) X-Mailer: emacs 21.3.1 (via feedmail 8 I); VM 7.19 under Emacs 21.3.1 Original-To: bug-gnu-emacs@gnu.org X-WSS-ID: 6ED03CA91CO3435437-01-01 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:12432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12432 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit) of 2004-01-19 on flashbak configured using `configure --prefix=/tool/pandora/.package/emacs-21.3-a --x-includes=/tool/pandora/include --x-libraries=/tool/pandora/lib --without-gif' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: $ emacs -q --no-site-file M-x set-backgrond-colormistyrose emacs beeps and says: [No match] X colors are case insensitive, but facemenu-read-color does a case sensitive match. The same bug is present in current CVS. Patch below. Jeff Recent input: C-h f f a c e m e n u - r e a d - c o l o r C-x o C-e C-b C-b C-b C-b Recent messages: Loading disp-table...done Loading tool-bar...done Loading image...done Loading tooltip...done For information about the GNU Project and its goals, type C-h C-p. Loading view...done Loading /tool/pandora/.package/emacs-21.3-a/libexec/emacs/21.3/i686-pc-linux-gnu/fns-21.3.1.el (source)...done Type C-x 1 to remove help window. C-M-v to scroll the help. Note: file is write protected Loading emacsbug...done *** facemenu.el Fri Jul 8 13:22:07 2005 --- /tool/pandora/.package/emacs-21.3-a/share/emacs/21.3/lisp/facemenu.el Sat Jan 27 03:48:03 2001 *************** *** 480,490 **** ;;;###autoload (defun facemenu-read-color (&optional prompt) "Read a color using the minibuffer." ! (let* ((completion-ignore-case t) ! (col (completing-read (or prompt "Color: ") ! (or facemenu-color-alist ! (mapcar 'list (defined-colors))) ! nil t))) (if (equal "" col) nil col))) --- 480,489 ---- ;;;###autoload (defun facemenu-read-color (&optional prompt) "Read a color using the minibuffer." ! (let ((col (completing-read (or prompt "Color: ") ! (or facemenu-color-alist ! (mapcar 'list (defined-colors))) ! nil t))) (if (equal "" col) nil col))) -- Jeff Dwork | jeff.dwork@amd.com 408-307-2496 (cell) Advanced Micro Devices, M/S 362| 408-749-5216 (desk) 408-774-7811 (fax) PO Box 3453 |---------------------------------------- Sunnyvale, Ca 94088-3453 |