tramp-cleanup-connection 似乎不会清理相关的 buffer

以往都是 tramp-cleanup-all-buffers 然后 tramp-cleanup-connection,今天尝试直接 tramp-cleanup-connection,发现不会清理 buffer。

根据 Cleanup remote connections (TRAMP 2.7.1.30.1 User Manual)

Flushing remote connections also cleans the password cache (see Reusing passwords for several connections), file cache, connection cache (see Reusing connection related information), and recentf cache. It also deletes session timers (see Setting own connection related information) and connection buffers.

看上去应该是清理 buffer 的才对,当然也有可能是我理解错 connection buffers 的意思,所以来论坛里问一下确定一下正确的行为是什么。如果它本身确实不清理,我就自己搓/找别的解决方案了。

但今天当不选中 tramp 打开的 buffer 时,发现 tramp-cleanup-all-buffers 似乎(在某种条件下)可以一起清理掉 buffer 和 connection,再用用看。