]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix case insensitivity in `read-file-name'
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 30 Jul 2021 11:51:46 +0000 (13:51 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 30 Jul 2021 11:51:46 +0000 (13:51 +0200)
* lisp/minibuffer.el (read-file-name-default): Make `read-file-name'
actually respect `read-file-name-completion-ignore-case' (bug#14340).

lisp/minibuffer.el

index 1578ab8e1ea65ebcec60d2d0eff8e2c3a8a10f9f..3751ba80e0ab54a85a45e172cc84a8690ae27305 100644 (file)
@@ -3087,7 +3087,7 @@ See `read-file-name' for the meaning of the arguments."
                     (minibuffer-maybe-quote-filename dir)))
                  (initial (cons (minibuffer-maybe-quote-filename initial) 0)))))
 
-    (let ((completion-ignore-case read-file-name-completion-ignore-case)
+    (let ((ignore-case read-file-name-completion-ignore-case)
           (minibuffer-completing-file-name t)
           (pred (or predicate 'file-exists-p))
           (add-to-history nil))
@@ -3115,6 +3115,7 @@ See `read-file-name' for the meaning of the arguments."
                                            minibuffer-default))
                             (setq minibuffer-default
                                   (cdr-safe minibuffer-default)))
+                          (setq-local completion-ignore-case ignore-case)
                           ;; On the first request on `M-n' fill
                           ;; `minibuffer-default' with a list of defaults
                           ;; relevant for file-name reading.