diff options
| author | Lars Ingebrigtsen | 2019-11-17 10:40:11 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-11-17 10:40:11 +0100 |
| commit | 58ceb8bac0bcd9907ca8ff8fd37d5a6c2ce282ca (patch) | |
| tree | 1adea348c3773bfc2c75f8c3220bc20fdde3cba4 | |
| parent | ca3eb85495e61b7255c2c5466fd1cdae7c9fa8d4 (diff) | |
| download | emacs-58ceb8bac0bcd9907ca8ff8fd37d5a6c2ce282ca.tar.gz emacs-58ceb8bac0bcd9907ca8ff8fd37d5a6c2ce282ca.zip | |
Make ido-read-file-name respect ido-read-file-name-non-ido more
* lisp/ido.el (ido-read-file-name): Respect
ido-read-file-name-non-ido in the file-directory-p case, too
(bug#38231).
| -rw-r--r-- | lisp/ido.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 2a660e6b0ce..79f259b8198 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -4906,10 +4906,12 @@ Read file name, prompting with PROMPT and completing in directory DIR. | |||
| 4906 | See `read-file-name' for additional parameters." | 4906 | See `read-file-name' for additional parameters." |
| 4907 | (let (filename) | 4907 | (let (filename) |
| 4908 | (cond | 4908 | (cond |
| 4909 | ((or (eq predicate 'file-directory-p) | 4909 | ((and (not (memq this-command ido-read-file-name-non-ido)) |
| 4910 | (eq (and (symbolp this-command) | 4910 | (or (eq predicate 'file-directory-p) |
| 4911 | (get this-command 'ido)) 'dir) | 4911 | (eq (and (symbolp this-command) |
| 4912 | (memq this-command ido-read-file-name-as-directory-commands)) | 4912 | (get this-command 'ido)) |
| 4913 | 'dir) | ||
| 4914 | (memq this-command ido-read-file-name-as-directory-commands))) | ||
| 4913 | (setq filename | 4915 | (setq filename |
| 4914 | (ido-read-directory-name prompt dir default-filename mustmatch initial))) | 4916 | (ido-read-directory-name prompt dir default-filename mustmatch initial))) |
| 4915 | ((and (not (eq (and (symbolp this-command) | 4917 | ((and (not (eq (and (symbolp this-command) |