1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-02 21:52:04 -08:00
emacs/test/lisp/net
Michael Albinus 022f50ebe6 New command 'tramp-cleanup-some-buffers'
* doc/misc/tramp.texi (Cleanup remote connections):
Document tramp-cleanup-some-buffers and
tramp-cleanup-some-buffers-hook.

* etc/NEWS: New command 'tramp-cleanup-some-buffers'.

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Use `tramp-taint-remote-process-buffer'.

* lisp/net/tramp.el (tramp-post-process-creation): New defun.
(tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-sh-handle-file-notify-add-watch)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
(tramp-smb-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection)
(tramp-sudoedit-send-command): Use it.

* lisp/net/tramp-cmds.el (tramp-tainted-remote-process-buffers):
New defvar.
(tramp-cleanup-dired-buffer-p)
(tramp-delete-tainted-remote-process-buffer-function)
(kill-buffer-hook, tramp-cleanup-remote-process-p)
(tramp-cleanup-some-buffers): New defuns.
(tramp-cleanup-some-buffers-hook): New defcustom.  Add
`buffer-file-name', `tramp-cleanup-dired-buffer-p' and
`tramp-cleanup-remote-process-p' to the hook.
(kill-buffer-hook):
Add `tramp-delete-tainted-remote-process-buffer-function'.
(tramp-cleanup-all-buffers): Rework.

* lisp/net/tramp-compat.el (tramp-compat-always): New defalias.

* test/lisp/net/tramp-tests.el (tramp--test-always): Delete.
(tramp-test10-write-region, tramp-test21-file-links)
(tramp--test-deftest-direct-async-process)
(tramp-test37-make-auto-save-file-name)
(tramp-test38-find-backup-file-name)
(tramp-test39-make-lock-file-name)
(tramp-test39-detect-external-change): Use `tramp-compat-always'.
2023-04-26 18:06:39 +02:00
..
dbus-resources
eudc-resources EUDC: Improve LDAP and BBDB tests 2022-11-24 02:21:38 -05:00
mailcap-resources
network-stream-resources
ntlm-resources
puny-resources ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
shr-resources
tramp-archive-resources
tramp-resources
browse-url-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dbus-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dig-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eudc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gnutls-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
hmac-md5-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mailcap-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
network-stream-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
newsticker-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
nsm-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ntlm-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
puny-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rcirc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rfc2104-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl-cram-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl-scram-rfc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
secrets-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
shr-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
socks-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tramp-archive-tests.el Merge from origin/emacs-29 2023-01-23 01:34:43 +01:00
tramp-tests.el New command 'tramp-cleanup-some-buffers' 2023-04-26 18:06:39 +02:00
webjump-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00