Subject: bug#37297: Tramp jumps to EOB on connection termination

From: Michael Albinus <[email-masked]>
Date: Wed, 04 Sep 2019 09:43:47 +0200

"Daniel Colascione" <[email-masked]> writes:

Hi Daniel,

> 1) Use master
> 2) Use tramp sshx method to visit a file
> 3) killall ssh
> 4) See tramp move point in file's buffer to the end for some reason
>
> Why should killing the underlying connection move point?

Thanks for reporting this, and also for your fix in master. I've changed
it slightly; `tramp-get-buffer' returns the main communication buffer
Tramp uses to send commands to the remote host. This is not the buffer
used for asynchronous processes. That's why I have replaced this call by
`process-buffer'.

Could you pls recheck that it still works for you?

Thanks, and best regards, Michael.