In the TRAMP Info node "Default Method" the examples given in
elisp are improperly formed; specifically, the default methods to
add to `tramp-default-method-alist' are not in the correct
`METHOD HOST USER' argument order (according to the
aforementioned variable's documentation).

What is currently displayed:

(add-to-list 'tramp-default-method-alist '("" "john" "ssh"))
(add-to-list 'tramp-default-method-alist '("lily" "" "rsync"))
(add-to-list 'tramp-default-method-alist
             '("\\`localhost\\'" "\\`root\\'" "su"))

Instead, it should be:

(add-to-list 'tramp-default-method-alist '("ssh" "" "john"))
(add-to-list 'tramp-default-method-alist '("rsync" "" "lily"))
(add-to-list 'tramp-default-method-alist
             '("su" "\\`localhost\\'" "\\`root\\'"))

Attached are the diff and changelog for the necessary changes.

Attachment: ChangeLog
Description: Binary data

--- tramp.texi	2017-03-02 12:18:43.398828097 -0500
+++ NEW_tramp.texi	2017-03-02 12:19:39.991156061 -0500
@@ -1026,10 +1026,10 @@
 
 @lisp
 @group
-(add-to-list 'tramp-default-method-alist '("" "john" "ssh"))
-(add-to-list 'tramp-default-method-alist '("lily" "" "rsync"))
+(add-to-list 'tramp-default-method-alist '("ssh" "" "john"))
+(add-to-list 'tramp-default-method-alist '("rsync" "" "lily"))
 (add-to-list 'tramp-default-method-alist
-             '("\\`localhost\\'" "\\`root\\'" "su"))
+             '("su" "\\`localhost\\'" "\\`root\\'"))
 @end group
 @end lisp
 @end defopt
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to