]> git.eshelyaron.com Git - emacs.git/commit
Add Tramp sudoedit method
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 16 Dec 2018 14:49:07 +0000 (15:49 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 16 Dec 2018 14:49:07 +0000 (15:49 +0100)
commite8199e765f81968be840d8e7e3978f5974c1be9d
tree354c9b7af9c126a49e614b716225c49135d702b4
parent4f230e8dd551d711433e2a8095a19c2ce00c9b4c
Add Tramp sudoedit method

* doc/misc/tramp.texi (Quick Start Guide): New section "Using sudoedit".
(External methods) <sudoedit>: Describe.

* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Add handler.

* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-uid-gid): Rename from
`tramp-sh-handle-set-file-uid-gid'.  Handle only remote file names.

* lisp/net/tramp-sudoedit.el: New file.

* lisp/net/tramp.el (tramp-file-name-for-operation): Handle also
`tramp-set-file-uid-gid'.
(tramp-set-file-uid-gid): New defun.
(tramp-get-local-uid, tramp-get-local-gid): Cache result.

* test/lisp/net/tramp-tests.el (tramp--test-sudoedit-p): New defun.
(tramp-test20-file-modes, tramp-test22-file-times)
(tramp--test-sudoedit-p): Use it.
12 files changed:
doc/misc/tramp.texi
etc/NEWS
lisp/net/tramp-adb.el
lisp/net/tramp-archive.el
lisp/net/tramp-cache.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-rclone.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp-sudoedit.el [new file with mode: 0644]
lisp/net/tramp.el
test/lisp/net/tramp-tests.el