I was In the middle of editing a file on a remote host and hit C-x C-s
, when suddenly Emacs froze. It had been working earlier that day; I'd saved from another buffer in the same session only ten minutes prior. Hitting C-g
pulled it out of the hung status, but it wouldn't save anymore. Local machine is OS X Leopard, remote is FreeBSD 7.4, Emacs is a precompiled download 24.1 (9.0) for OS X.
I did M-x tramp-cleanup-all-connections
and tried again. No luck. I tried many things, including shutting my workstation down and restarting emacs.
Skipping to the end, I changed the following line in my .emacs:
(setq tramp-verbose 10); had been 3
I figured I'd get some good debugging information that way. So I restarted, and attempted to edit a remote file, figuring I'd see something in the *debug tramp/ssh ...* buffer.
Lo and behold, I was able to edit the remote file again.
I reset tramp-verbose
to 3, restarted, and tramp hung again. I switched it back to 10, everything works. It works even if I set tramp-debug-buffer
to nil
.
Anyone have any ideas why this would be? The thing that really gives me pause is that Emacs suddenly stopped working after months of glitch-free editing.
TCPKeepAlive yes
andControlPersist yes
in my ~/.ssh/config file has helped alleviate the problem a little bit; ymmv. – gempesaw