]> git.eshelyaron.com Git - emacs.git/commitdiff
Make ido-read-file-name respect ido-read-file-name-non-ido more
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Nov 2019 09:40:11 +0000 (10:40 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Nov 2019 09:40:11 +0000 (10:40 +0100)
* lisp/ido.el (ido-read-file-name): Respect
ido-read-file-name-non-ido in the file-directory-p case, too
(bug#38231).

lisp/ido.el

index 2a660e6b0ce1ae49c800668a90772edb35ede1c8..79f259b819897602feb48dc46e3c77f851eae1d5 100644 (file)
@@ -4906,10 +4906,12 @@ Read file name, prompting with PROMPT and completing in directory DIR.
 See `read-file-name' for additional parameters."
   (let (filename)
     (cond
-     ((or (eq predicate 'file-directory-p)
-         (eq (and (symbolp this-command)
-                  (get this-command 'ido)) 'dir)
-         (memq this-command ido-read-file-name-as-directory-commands))
+     ((and (not (memq this-command ido-read-file-name-non-ido))
+           (or (eq predicate 'file-directory-p)
+              (eq (and (symbolp this-command)
+                        (get this-command 'ido))
+                   'dir)
+              (memq this-command ido-read-file-name-as-directory-commands)))
       (setq filename
            (ido-read-directory-name prompt dir default-filename mustmatch initial)))
      ((and (not (eq (and (symbolp this-command)