aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorshipmints2025-02-25 11:34:49 +0100
committerMichael Albinus2025-02-25 11:34:49 +0100
commitbea00a07990ebfbe420636363f8d3514571ae79d (patch)
tree21b3e3491e2454d122db3bca6a5bd430e18aac3d /doc
parentcc8e8b2595ff2ad0c4e4d5805fed1657a5ad504a (diff)
downloademacs-bea00a07990ebfbe420636363f8d3514571ae79d.tar.gz
emacs-bea00a07990ebfbe420636363f8d3514571ae79d.zip
Add tramp-cleanup-bufferless-connections (bug#76417)
* doc/misc/tramp.texi (Cleanup remote connections): Add 'tramp-cleanup-bufferless-connections'. * etc/NEWS: Announce 'tramp-cleanup-bufferless-connections'. * lisp/net/tramp-cmds.el: (tramp-list-remote-buffer-connections): New function. (tramp-cleanup-bufferless-connections): New command. (tramp-list-remote-buffers): Account for 'buffer-file-name'.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/tramp.texi17
1 files changed, 15 insertions, 2 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 1eed1acd964..7c1f0007dfb 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -4783,13 +4783,13 @@ proxy definitions (@pxref{Ad-hoc multi-hops}).
4783 4783
4784@deffn Command tramp-cleanup-all-buffers 4784@deffn Command tramp-cleanup-all-buffers
4785Just as for @code{tramp-cleanup-all-connections}, all remote 4785Just as for @code{tramp-cleanup-all-connections}, all remote
4786connections and ad-hoc proxy definition are cleaned up in addition to 4786connections and ad-hoc proxy definitions are cleaned up in addition to
4787killing all buffers related to remote connections. 4787killing all buffers related to remote connections.
4788@end deffn 4788@end deffn
4789 4789
4790@deffn Command tramp-cleanup-some-buffers 4790@deffn Command tramp-cleanup-some-buffers
4791Similar to @code{tramp-cleanup-all-buffers}, where all remote 4791Similar to @code{tramp-cleanup-all-buffers}, where all remote
4792connections and ad-hoc proxy definition are cleaned up. However, 4792connections and ad-hoc proxy definitions are cleaned up. However,
4793additional buffers are killed only if one of the functions in 4793additional buffers are killed only if one of the functions in
4794@code{tramp-cleanup-some-buffers-hook} returns @code{t}. 4794@code{tramp-cleanup-some-buffers-hook} returns @code{t}.
4795@end deffn 4795@end deffn
@@ -4801,6 +4801,19 @@ remote buffers which are linked to a remote file, remote @code{dired}
4801buffers, and buffers related to a remote process are cleaned up. 4801buffers, and buffers related to a remote process are cleaned up.
4802@end defopt 4802@end defopt
4803 4803
4804@deffn Command tramp-cleanup-bufferless-connections
4805
4806Similar to @code{tramp-cleanup-all-connections}, remote connections and
4807ad-hoc proxy definitions are flushed, but limited to those connections
4808for which no associated buffers exist (except for Tramp internal
4809buffers).
4810
4811This command is helpful to prune connections after you close remote-file
4812buffers without having to either cherry pick via
4813@code{tramp-cleanup-connection} or clear them all via
4814@code{tramp-cleanup-all-connections}.
4815@end deffn
4816
4804 4817
4805@node Renaming remote files 4818@node Renaming remote files
4806@section Renaming remote files 4819@section Renaming remote files