]> git.eshelyaron.com Git - emacs.git/commit
Adapt Tramp password prompts for sudo-like methods
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 19 Feb 2022 17:38:12 +0000 (18:38 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 19 Feb 2022 17:38:12 +0000 (18:38 +0100)
commit7e4ef09aa0d9587677d44284af72ceb3f44061b7
tree1f1e35cbe3720ac6f0db79abde9078e6a240f2a1
parenta72e0e50f0afbb8b37b9ebd8e1fa83ce3eb9f643
Adapt Tramp password prompts for sudo-like methods

* doc/misc/tramp.texi (Password handling): Explain entries for
doas, sudo and sudoedit.

* etc/NEWS (Tramp): Document changed password prompts.

* lisp/net/tramp-sh.el (tramp-methods) <sudo, doas>:
Add `tramp-password-previous-hop'.
(tramp-maybe-open-connection): Modify `previous-hop' if needed.

* lisp/net/tramp-sudoedit.el (tramp-methods) <sudoedit>:
Add `tramp-password-previous-hop'.
(tramp-sudoedit-null-hop): New defconst.
(tramp-sudoedit-send-command): Use it.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-null-hop): New defconst.
(tramp-get-remote-null-device): Use it.
doc/misc/tramp.texi
etc/NEWS
lisp/net/tramp-sh.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el