News for hackers. Stuff that matters.
Re:Emacs 27.2 by throwanem on Thursday March 25, 2021 @11:43AM (#26581660)
Tramp works a lot more reliably if you customize where Emacs puts your backups and autosaves, such that they're stored locally instead of remotely. The Emacs wiki has details on how to do that: https://www.emacswiki.org/emacs/BackupDirectory
Re:Emacs 27.2 by tsimionescu on Thursday March 25, 2021 @01:32PM (#26583043)
The biggest problem I have with Tramp performance is much deeper, the need to open a new connection for every request - it makes integrating other modes with Tramp much more difficult than I would hope for (e.g. I tried to make kubernetes-mode work over tramp, and it mostly did, but each refresh had to reconnect, which would freeze the whole Emacs GUI for a second or so; thankfully kubel-mode has a more complete implementation that handles this gracefully).
Re:Emacs 27.2 by psanford on Thursday March 25, 2021 @02:21PM (#26583586)
I've had this in my config for a long time. Seems to make tramp work a lot better:

    ; use ssh instead of scpx mode for tramp
    ; this should work a lot better with ssh connection sharing
    (setq tramp-default-method "ssh")
Re:Emacs 27.2 by tptacek on Thursday March 25, 2021 @01:54PM (#26583312)
This was problematic even with SSH multiplexing?
Re:Emacs 27.2 by taeric on Thursday March 25, 2021 @01:53PM (#26583298)
You still have this problem even with a control master setup with ssh?
Re:Emacs 27.2 by taeric on Thursday March 25, 2021 @11:50AM (#26581764)
I can't and don't blame tramp, per se. My internet has regular hiccups of being completely disconnected. Pretty sure that is not fixable. :(
Re:Emacs 27.2 by throwanem on Thursday March 25, 2021 @12:39PM (#26582384)
Not by Emacs, but locally storing backups and autosaves means it only matters when you're actively reading or writing a file via Tramp.
Re:Emacs 27.2 by taeric on Thursday March 25, 2021 @12:44PM (#26582462)
Absolutely. It just sucks, as my build are so much faster on the remote machine. :)

That is, a lot of my remote editing is not just idle edits, but edit, run build, burn down compile output of tests and other items I'm working.

If I really want hell, I'll try and run lsp remotely.

None of this would matter, if I hadn't built up so much muscle memory from when I did have good internet and it did just transparently work.