]> git.eshelyaron.com Git - emacs.git/commitdiff
(facemenu-read-color): Do case-insensitive matching.
authorRichard M. Stallman <rms@gnu.org>
Sun, 10 Jul 2005 17:20:02 +0000 (17:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 10 Jul 2005 17:20:02 +0000 (17:20 +0000)
lisp/facemenu.el

index 55ddf663b281092a3d941096422fd6188373d391..1cda18dda2edc52f5849cc0c27b4a25edabd9fa5 100644 (file)
@@ -475,10 +475,11 @@ These special properties include `invisible', `intangible' and `read-only'."
 ;;;###autoload
 (defun facemenu-read-color (&optional prompt)
   "Read a color using the minibuffer."
-  (let ((col (completing-read (or prompt "Color: ")
-                             (or facemenu-color-alist
-                                 (defined-colors))
-                             nil t)))
+  (let* ((completion-ignore-case t)
+        (col (completing-read (or prompt "Color: ")
+                              (or facemenu-color-alist
+                                  (defined-colors))
+                              nil t)))
     (if (equal "" col)
        nil
       col)))