diff options
| -rw-r--r-- | lisp/ido.el | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 86a88d0d491..ddeecbb9b69 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1935,19 +1935,21 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 1935 | ;; Internal function for ido-find-file and friends | 1935 | ;; Internal function for ido-find-file and friends |
| 1936 | (unless item | 1936 | (unless item |
| 1937 | (setq item 'file)) | 1937 | (setq item 'file)) |
| 1938 | (let* ((ido-current-directory (ido-expand-directory default)) | 1938 | (let ((ido-current-directory (ido-expand-directory default)) |
| 1939 | (ido-directory-nonreadable (ido-nonreadable-directory-p ido-current-directory)) | 1939 | (ido-context-switch-command switch-cmd) |
| 1940 | (ido-directory-too-big (and (not ido-directory-nonreadable) | 1940 | ido-directory-nonreadable ido-directory-too-big |
| 1941 | (ido-directory-too-big-p ido-current-directory))) | 1941 | filename) |
| 1942 | (ido-context-switch-command switch-cmd) | 1942 | |
| 1943 | filename) | 1943 | (if (or (not ido-mode) (ido-is-slow-ftp-host)) |
| 1944 | 1944 | (setq filename t | |
| 1945 | (cond | 1945 | ido-exit 'fallback) |
| 1946 | ((or (not ido-mode) (ido-is-slow-ftp-host)) | 1946 | (setq ido-directory-nonreadable |
| 1947 | (setq filename t | 1947 | (ido-nonreadable-directory-p ido-current-directory) |
| 1948 | ido-exit 'fallback)) | 1948 | ido-directory-too-big |
| 1949 | 1949 | (and (not ido-directory-nonreadable) | |
| 1950 | ((and (eq item 'file) | 1950 | (ido-directory-too-big-p ido-current-directory)))) |
| 1951 | |||
| 1952 | (when (and (eq item 'file) | ||
| 1951 | (or ido-use-url-at-point ido-use-filename-at-point)) | 1953 | (or ido-use-url-at-point ido-use-filename-at-point)) |
| 1952 | (let (fn d) | 1954 | (let (fn d) |
| 1953 | (require 'ffap) | 1955 | (require 'ffap) |
| @@ -1966,7 +1968,7 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 1966 | (setq d (file-name-directory fn)) | 1968 | (setq d (file-name-directory fn)) |
| 1967 | (file-directory-p d)) | 1969 | (file-directory-p d)) |
| 1968 | (setq ido-current-directory d) | 1970 | (setq ido-current-directory d) |
| 1969 | (setq initial (file-name-nondirectory fn))))))) | 1971 | (setq initial (file-name-nondirectory fn)))))) |
| 1970 | 1972 | ||
| 1971 | (let (ido-saved-vc-hb | 1973 | (let (ido-saved-vc-hb |
| 1972 | (vc-handled-backends (and (boundp 'vc-handled-backends) vc-handled-backends)) | 1974 | (vc-handled-backends (and (boundp 'vc-handled-backends) vc-handled-backends)) |