diff options
| author | shipmints | 2025-02-25 11:34:49 +0100 |
|---|---|---|
| committer | Michael Albinus | 2025-02-25 11:34:49 +0100 |
| commit | bea00a07990ebfbe420636363f8d3514571ae79d (patch) | |
| tree | 21b3e3491e2454d122db3bca6a5bd430e18aac3d /doc/misc | |
| parent | cc8e8b2595ff2ad0c4e4d5805fed1657a5ad504a (diff) | |
| download | emacs-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/misc')
| -rw-r--r-- | doc/misc/tramp.texi | 17 |
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 |
| 4785 | Just as for @code{tramp-cleanup-all-connections}, all remote | 4785 | Just as for @code{tramp-cleanup-all-connections}, all remote |
| 4786 | connections and ad-hoc proxy definition are cleaned up in addition to | 4786 | connections and ad-hoc proxy definitions are cleaned up in addition to |
| 4787 | killing all buffers related to remote connections. | 4787 | killing 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 |
| 4791 | Similar to @code{tramp-cleanup-all-buffers}, where all remote | 4791 | Similar to @code{tramp-cleanup-all-buffers}, where all remote |
| 4792 | connections and ad-hoc proxy definition are cleaned up. However, | 4792 | connections and ad-hoc proxy definitions are cleaned up. However, |
| 4793 | additional buffers are killed only if one of the functions in | 4793 | additional 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} | |||
| 4801 | buffers, and buffers related to a remote process are cleaned up. | 4801 | buffers, 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 | |||
| 4806 | Similar to @code{tramp-cleanup-all-connections}, remote connections and | ||
| 4807 | ad-hoc proxy definitions are flushed, but limited to those connections | ||
| 4808 | for which no associated buffers exist (except for Tramp internal | ||
| 4809 | buffers). | ||
| 4810 | |||
| 4811 | This command is helpful to prune connections after you close remote-file | ||
| 4812 | buffers 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 |