Make a more robust check in Tramp using scripts
* lisp/net/tramp-sh.el (tramp-find-inline-encoding): Check, whether scripts in `tramp-remote-coding-commands' are expandable.
This commit is contained in:
parent
6e50d86ca2
commit
1d0a60113f
1 changed files with 4 additions and 0 deletions
|
@ -4597,6 +4597,8 @@ Goes through the list `tramp-local-coding-commands' and
|
|||
(value (symbol-value rem-enc)))
|
||||
(while (string-match "-" name)
|
||||
(setq name (replace-match "_" nil t name)))
|
||||
(unless (tramp-expand-script vec value)
|
||||
(throw 'wont-work-remote nil))
|
||||
(tramp-maybe-send-script vec value name)
|
||||
(setq rem-enc name)))
|
||||
(tramp-message
|
||||
|
@ -4614,6 +4616,8 @@ Goes through the list `tramp-local-coding-commands' and
|
|||
(value (symbol-value rem-dec)))
|
||||
(while (string-match "-" name)
|
||||
(setq name (replace-match "_" nil t name)))
|
||||
(unless (tramp-expand-script vec value)
|
||||
(throw 'wont-work-remote nil))
|
||||
(tramp-maybe-send-script vec value name)
|
||||
(setq rem-dec name)))
|
||||
(tramp-message
|
||||
|
|
Loading…
Add table
Reference in a new issue