]> git.eshelyaron.com Git - emacs.git/commit
Improve tramp-*-with-sudo commands
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 14 Mar 2025 15:31:51 +0000 (16:31 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Mar 2025 17:10:03 +0000 (18:10 +0100)
commit60bf9ceffe3e5bd57a52d32922647c038097a0db
treee25bf371dce986b2144e9d847c1da452048b4744
parenta54bcbd5af35a9586137c97d453e6f6c7d9ea676
Improve tramp-*-with-sudo commands

* doc/emacs/dired.texi (Dired Visiting):
Add tramp-dired-find-file-with-sudo.

* doc/emacs/files.texi (Reverting):
Add tramp-revert-buffer-with-sudo.

* doc/misc/tramp.texi (Ad-hoc multi-hops): Extend wrt
`tramp-*-with-sudo' commands.

* etc/NEWS: Add tramp-dired-find-file-with-sudo.
Fix typos.

* lisp/bindings.el (ctl-x-x-map):
* lisp/dired.el (dired-mode-map): Add "@" binding.  (Bug#76974)

* lisp/net/tramp-cmds.el (dired-get-file-for-visit): Declare.
(with-tramp-file-name-with-method): New macro.
(tramp-revert-buffer-with-sudo): Autoload.  Preserve position.
Use `with-tramp-file-name-with-method'.
(tramp-dired-find-file-with-sudo): New command.

(cherry picked from commit 24ffcbb3da9a010cf564bb496af3f5ce0b805f17)
doc/emacs/dired.texi
doc/emacs/files.texi
doc/misc/tramp.texi
lisp/bindings.el
lisp/dired.el
lisp/net/tramp-cmds.el