Sometimes i work on remote machine (or several) via TRAMP. However, sometimes sessions end in such a way they cannot be reopened later.
In such situation, closing emacs results in unacceptable delays as futile failing attempts to reconnect to remote host go on; even if all buffers are killed.
How to avoid that and ensure emacs simply closes without resorting to means of sysstem process control?
tramp-cleanup-all-connections
. It gave me nothing, seeing as it only causes tramp to try reconnecting later when here is something emacs thinks to be done with the "remote" buffer or remote current folder. And since reconnection is impossible, that only stalls the program for no purpose – Srv19 Apr 08 '17 at 10:55M-x tramp-cleanup-all-buffers
. It closes also all remote buffers, which might be in the way. – Michael Albinus Apr 09 '17 at 07:48