aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-08-17 19:12:10 +0000
committerMichael Albinus2009-08-17 19:12:10 +0000
commit56c195afd06a749f55cca3ec6a50212cd32dae2a (patch)
tree2b419f3f7a01481a020fae31da813754180fe1ab
parentf601cdf35d3e76ffc4927ea35e0f82e72b1ba37f (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lisp/net/tramp.el18
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 @@
12009-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
12009-08-16 Chong Yidong <cyd@stupidchicken.com> 62009-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