aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Colascione2014-02-26 21:20:20 -0800
committerDaniel Colascione2014-02-26 21:20:20 -0800
commit51f213c35fbd45fbf068f2667b8af7ba31c29de4 (patch)
tree23bd1553f84240c14526c1d5b68d5343fb71b347
parentb77cfcd762d06febbe7f1626f6176bad84c9c36b (diff)
parenteff3168abcbdf6dde12e2358e6bf02caa55c8bf3 (diff)
downloademacs-51f213c35fbd45fbf068f2667b8af7ba31c29de4.tar.gz
emacs-51f213c35fbd45fbf068f2667b8af7ba31c29de4.zip
Fix tramp bug with empty explicit path
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/minibuffer.el12
-rw-r--r--lisp/net/tramp-sh.el4
3 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 91eea5301bf..3182666b483 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12014-02-27 Daniel Colascione <dancol@dancol.org>
2
3 * minibuffer.el (completion--nth-completion): Fix indentation.
4
5 * net/tramp-sh.el (tramp-get-remote-path): Don't signal error when
6 explicit tramp path is empty.
7
12014-02-27 Glenn Morris <rgm@gnu.org> 82014-02-27 Glenn Morris <rgm@gnu.org>
2 9
3 * emacs-lisp/crm.el (completing-read-multiple): 10 * emacs-lisp/crm.el (completing-read-multiple):
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 737172e359f..95e45260f85 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -850,12 +850,12 @@ completing buffer and file names, respectively."
850 (setq table (pop new)) 850 (setq table (pop new))
851 (setq point (pop new)) 851 (setq point (pop new))
852 (pop new)))) 852 (pop new))))
853 (result 853 (result
854 (completion--some (lambda (style) 854 (completion--some (lambda (style)
855 (funcall (nth n (assq style 855 (funcall (nth n (assq style
856 completion-styles-alist)) 856 completion-styles-alist))
857 string table pred point)) 857 string table pred point))
858 (completion--styles metadata)))) 858 (completion--styles metadata))))
859 (if requote 859 (if requote
860 (funcall requote result n) 860 (funcall requote result n)
861 result))) 861 result)))
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 37e212970ce..04109f9816c 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4846,7 +4846,7 @@ Return ATTR."
4846 (when elt1 4846 (when elt1
4847 (setcdr elt1 4847 (setcdr elt1
4848 (append 4848 (append
4849 (tramp-compat-split-string default-remote-path ":") 4849 (tramp-compat-split-string (or default-remote-path "") ":")
4850 (cdr elt1))) 4850 (cdr elt1)))
4851 (setq remote-path (delq 'tramp-default-remote-path remote-path))) 4851 (setq remote-path (delq 'tramp-default-remote-path remote-path)))
4852 4852
@@ -4854,7 +4854,7 @@ Return ATTR."
4854 (when elt2 4854 (when elt2
4855 (setcdr elt2 4855 (setcdr elt2
4856 (append 4856 (append
4857 (tramp-compat-split-string own-remote-path ":") 4857 (tramp-compat-split-string (or own-remote-path "") ":")
4858 (cdr elt2))) 4858 (cdr elt2)))
4859 (setq remote-path (delq 'tramp-own-remote-path remote-path))) 4859 (setq remote-path (delq 'tramp-own-remote-path remote-path)))
4860 4860