Function: tramp-set-file-name-with-method
tramp-set-file-name-with-method is a byte-compiled function defined in
tramp-cmds.el.gz.
Signature
(tramp-set-file-name-with-method SYMBOL VALUE)
Documentation
Set SYMBOL to value VALUE.
Used in user option tramp-file-name-with-method. If VALUE is an
optional method, enable it.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-cmds.el.gz
(defun tramp-set-file-name-with-method (symbol value)
"Set SYMBOL to value VALUE.
Used in user option `tramp-file-name-with-method'. If VALUE is an
optional method, enable it."
(unless (string-equal (symbol-value symbol) value)
;; Enable optional method.
(tramp-enable-method value)
;; Set the value.
(when (assoc value tramp-methods)
(set-default symbol value))))