diff options
| author | Michael Albinus | 2009-08-17 19:12:10 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-08-17 19:12:10 +0000 |
| commit | 56c195afd06a749f55cca3ec6a50212cd32dae2a (patch) | |
| tree | 2b419f3f7a01481a020fae31da813754180fe1ab | |
| parent | f601cdf35d3e76ffc4927ea35e0f82e72b1ba37f (diff) | |
| download | emacs-56c195afd06a749f55cca3ec6a50212cd32dae2a.tar.gz emacs-56c195afd06a749f55cca3ec6a50212cd32dae2a.zip | |
* net/tramp.el (tramp-register-completion-file-name-handler):
Check also for (member 'partial-completion completion-styles).
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 18 |
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0327630fbb2..24e5fa9eae3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-08-17 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-register-completion-file-name-handler): | ||
| 4 | Check also for (member 'partial-completion completion-styles). | ||
| 5 | |||
| 1 | 2009-08-16 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-08-16 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * progmodes/cperl-mode.el (cperl-electric-paren): Don't expand | 8 | * progmodes/cperl-mode.el (cperl-electric-paren): Don't expand |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 94b4858a074..16f9c5b182c 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -4925,13 +4925,17 @@ Falls back to normal file name handler if no Tramp file name handler exists." | |||
| 4925 | (let ((a1 (rassq | 4925 | (let ((a1 (rassq |
| 4926 | 'tramp-completion-file-name-handler file-name-handler-alist))) | 4926 | 'tramp-completion-file-name-handler file-name-handler-alist))) |
| 4927 | (setq file-name-handler-alist (delete a1 file-name-handler-alist))) | 4927 | (setq file-name-handler-alist (delete a1 file-name-handler-alist))) |
| 4928 | ;; `partial-completion-mode' is unknown in XEmacs. So we should | 4928 | ;; In XEmacs, there is another Tramp syntax, so we can enable this |
| 4929 | ;; load it unconditionally there. In the GNU Emacs case, method/ | 4929 | ;; unconditionally. In GNU Emacs <= 22, method/user/host name |
| 4930 | ;; user/host name completion shall be bound to `partial-completion-mode'. | 4930 | ;; completion shall be bound to `partial-completion-mode'. Starting |
| 4931 | ;; `ido-mode' and `icy-mode' are other packages which extend file | 4931 | ;; with GNU Emacs 23, this is replaced by `completion-styles', |
| 4932 | ;; name completion. | 4932 | ;; containing symbol `partial-completion'. `ido-mode' and |
| 4933 | (when (or (not (boundp 'partial-completion-mode)) | 4933 | ;; `icy-mode' are other packages which extend file name completion. |
| 4934 | (symbol-value 'partial-completion-mode) | 4934 | (when (or (and (boundp 'partial-completion-mode) |
| 4935 | (symbol-value 'partial-completion-mode)) | ||
| 4936 | (and (boundp 'completion-styles) | ||
| 4937 | (member 'partial-completion (symbol-value 'completion-styles))) | ||
| 4938 | (featurep 'xemacs) | ||
| 4935 | (featurep 'ido) | 4939 | (featurep 'ido) |
| 4936 | (featurep 'icicles)) | 4940 | (featurep 'icicles)) |
| 4937 | (add-to-list 'file-name-handler-alist | 4941 | (add-to-list 'file-name-handler-alist |