diff options
| author | Michael Albinus | 2011-10-26 10:42:22 +0200 |
|---|---|---|
| committer | Michael Albinus | 2011-10-26 10:42:22 +0200 |
| commit | ad74a69e6bfe6ae72a9ae7e892730b50e9430bef (patch) | |
| tree | b894a8d1a8528136ae3ae29a0b4cc0d77516ce0e | |
| parent | 71d4c2a518e58b37f42c0d57e5c0507af5792133 (diff) | |
| download | emacs-ad74a69e6bfe6ae72a9ae7e892730b50e9430bef.tar.gz emacs-ad74a69e6bfe6ae72a9ae7e892730b50e9430bef.zip | |
* ido.el (ido-file-name-all-completions-1): Do not require
tramp.el explicitely. (Bug#7583)
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ido.el | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60f1db123cf..88248f00559 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-10-26 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * ido.el (ido-file-name-all-completions-1): Do not require | ||
| 4 | tramp.el explicitely. (Bug#7583) | ||
| 5 | |||
| 1 | 2011-10-26 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2011-10-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * progmodes/octave-mod.el: | 8 | * progmodes/octave-mod.el: |
| @@ -10,7 +15,7 @@ | |||
| 10 | 2011-10-25 Michael Albinus <michael.albinus@gmx.de> | 15 | 2011-10-25 Michael Albinus <michael.albinus@gmx.de> |
| 11 | 16 | ||
| 12 | * net/tramp-sh.el (tramp-sh-handle-file-directory-p): Return t for | 17 | * net/tramp-sh.el (tramp-sh-handle-file-directory-p): Return t for |
| 13 | filenames "/method:foo:". | 18 | filenames "/method:foo:". (Bug#9793) |
| 14 | 19 | ||
| 15 | 2011-10-25 Stefan Monnier <monnier@iro.umontreal.ca> | 20 | 2011-10-25 Stefan Monnier <monnier@iro.umontreal.ca> |
| 16 | 21 | ||
diff --git a/lisp/ido.el b/lisp/ido.el index 88599013ce6..fda4c0316f7 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -3457,8 +3457,6 @@ This is to make them appear as if they were \"virtual buffers\"." | |||
| 3457 | (nconc ido-temp-list items) | 3457 | (nconc ido-temp-list items) |
| 3458 | (setq ido-temp-list items))) | 3458 | (setq ido-temp-list items))) |
| 3459 | 3459 | ||
| 3460 | (declare-function tramp-tramp-file-p "tramp" (name)) | ||
| 3461 | |||
| 3462 | (defun ido-file-name-all-completions-1 (dir) | 3460 | (defun ido-file-name-all-completions-1 (dir) |
| 3463 | (cond | 3461 | (cond |
| 3464 | ((ido-nonreadable-directory-p dir) '()) | 3462 | ((ido-nonreadable-directory-p dir) '()) |
| @@ -3466,8 +3464,6 @@ This is to make them appear as if they were \"virtual buffers\"." | |||
| 3466 | ;; Caller must have done that if necessary. | 3464 | ;; Caller must have done that if necessary. |
| 3467 | 3465 | ||
| 3468 | ((and ido-enable-tramp-completion | 3466 | ((and ido-enable-tramp-completion |
| 3469 | (or (fboundp 'tramp-completion-mode-p) | ||
| 3470 | (require 'tramp nil t)) | ||
| 3471 | (string-match "\\`/[^/]+[:@]\\'" dir)) | 3467 | (string-match "\\`/[^/]+[:@]\\'" dir)) |
| 3472 | ;; Strip method:user@host: part of tramp completions. | 3468 | ;; Strip method:user@host: part of tramp completions. |
| 3473 | ;; Tramp completions do not include leading slash. | 3469 | ;; Tramp completions do not include leading slash. |
| @@ -3480,7 +3476,9 @@ This is to make them appear as if they were \"virtual buffers\"." | |||
| 3480 | ;; /ftp:user@host:./ => ok | 3476 | ;; /ftp:user@host:./ => ok |
| 3481 | (and | 3477 | (and |
| 3482 | (not (string= "/ftp:" dir)) | 3478 | (not (string= "/ftp:" dir)) |
| 3483 | (tramp-tramp-file-p dir) | 3479 | (file-remote-p dir) |
| 3480 | ;; tramp-ftp-file-name-p is available only when tramp | ||
| 3481 | ;; has been loaded. | ||
| 3484 | (fboundp 'tramp-ftp-file-name-p) | 3482 | (fboundp 'tramp-ftp-file-name-p) |
| 3485 | (funcall 'tramp-ftp-file-name-p dir) | 3483 | (funcall 'tramp-ftp-file-name-p dir) |
| 3486 | (string-match ":\\'" dir) | 3484 | (string-match ":\\'" dir) |