diff options
| author | Kim F. Storm | 2006-11-16 09:07:16 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-11-16 09:07:16 +0000 |
| commit | 033ecf787a3e1a250a43d179dec788f6c90c0482 (patch) | |
| tree | 1a2e42c78a63df90d900587572b2dbd6307d84c9 | |
| parent | 9923717e0ba99114ee9a1048b3ec91257c3a275a (diff) | |
| download | emacs-033ecf787a3e1a250a43d179dec788f6c90c0482.tar.gz emacs-033ecf787a3e1a250a43d179dec788f6c90c0482.zip | |
(ido-file-internal): Use current buffer's file name as default
choice for ido-find-alternate-file. Suggested by Matt Hodges.
| -rw-r--r-- | lisp/ido.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 97e285916d6..8844b12f5b7 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -2270,7 +2270,9 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 2270 | (let ((minibuffer-completing-file-name t)) | 2270 | (let ((minibuffer-completing-file-name t)) |
| 2271 | (setq filename (ido-read-internal item | 2271 | (setq filename (ido-read-internal item |
| 2272 | (or prompt "Find file: ") | 2272 | (or prompt "Find file: ") |
| 2273 | 'ido-file-history nil nil initial)))) | 2273 | 'ido-file-history |
| 2274 | (and (eq method 'alt-file) buffer-file-name) | ||
| 2275 | nil initial)))) | ||
| 2274 | 2276 | ||
| 2275 | ;; Choose the file name: either the text typed in, or the head | 2277 | ;; Choose the file name: either the text typed in, or the head |
| 2276 | ;; of the list of matches | 2278 | ;; of the list of matches |