]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/international/mule-cmds.el (read-char-by-name): Move let-binding of
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 11 Oct 2012 20:05:47 +0000 (16:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 11 Oct 2012 20:05:47 +0000 (16:05 -0400)
completion-ignore-case in case that var is buffer-local.

Fixes: debbugs:12615
lisp/ChangeLog
lisp/international/mule-cmds.el

index b8c4e518b0c376f674f764ab934c0d74c211e551..ba105ce4716ae85144e580afca48d2b6b0f5566c 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * international/mule-cmds.el (read-char-by-name): Move let-binding of
+       completion-ignore-case in case that var is buffer-local (bug#12615).
+
 2012-10-11  Kenichi Handa  <handa@gnu.org>
 
        * international/eucjp-ms.el: Re-generated.
@@ -10,8 +15,8 @@
 2012-10-10  Martin Rudalics  <rudalics@gmx.at>
 
        * window.el (switch-to-buffer-preserve-window-point): New option.
-       (switch-to-buffer): Obey
-       `switch-to-buffer-preserve-window-point' (Bug#4041).
+       (switch-to-buffer):
+       Obey `switch-to-buffer-preserve-window-point' (Bug#4041).
 
 2012-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 
index 58dd24ec8ea7a5e51c852fcce1a0e9b81c9ef4fe..3431c81df88af9e92a1b02f5fc3425f8f6593592 100644 (file)
@@ -2945,13 +2945,14 @@ at the beginning of the name.
 This function also accepts a hexadecimal number of Unicode code
 point or a number in hash notation, e.g. #o21430 for octal,
 #x2318 for hex, or #10r8984 for decimal."
-  (let* ((completion-ignore-case t)
-        (input (completing-read
-                 prompt
-                 (lambda (string pred action)
-                   (if (eq action 'metadata)
-                       '(metadata (category . unicode-name))
-                     (complete-with-action action (ucs-names) string pred))))))
+  (let ((input
+         (completing-read
+          prompt
+          (lambda (string pred action)
+            (let ((completion-ignore-case t))
+              (if (eq action 'metadata)
+                  '(metadata (category . unicode-name))
+                (complete-with-action action (ucs-names) string pred)))))))
     (cond
      ((string-match-p "\\`[0-9a-fA-F]+\\'" input)
       (string-to-number input 16))