Emacs Tramp freezes when saving and opening the current buffer after pausing / resuming

When starting Emacs (24.3.1) with Tramp (2.2.6-24.3) on Ubuntu 12.10, I will have a bunch of deleted files opened through Tramp, for example:

m-x find-file: /scp:user@example.com:~/file.txt

After a pause / resume cycle on my laptop, I will return to Emacs and start working in the open buffer. After saving or autosaving, it hangs and displays "args out of range (000 - 000)" (this is a message from memory, zeros represent the numbers that it shows, will edit it the next time I get it), and not save, Any subsequent attempts will simply freeze.

Also, I cannot open any other files using the same protocol in the find file as in the case of "scp" above.

Some workarounds that I found should first delete the ~ / .emacs.d / tramp file, which sometimes works, and there are times when it wasn’t after several pause / resume cycles.

Another workaround is to use a different protocol when opening files, so in the find-file line above I would use 'ssh' or 'scpc'. This is only for opening new buffers, and not for saving current buffers, so I usually close the file buffer and then open it again using another protocol that I mentioned.

Any suggestions?

+4
source share
1 answer

"args out the range", , , Tramp /. *tramp/scpc hostname*. , , .

ido-switch-buffer, - - , Tramp C-k, .


(, , ) reset - "M-x tramp-cleanup-this-connection":

tramp-cleanup-this-connection - Lisp `tramp-cmds.el '.

(---)

.

. "M-x tramp-cleanup-all-connections" "M-x tramp-cleanup-all-buffers".

+4

Source: https://habr.com/ru/post/1540039/


All Articles