I think one of my package is interacting wrongly with TRAMP and it is too often freezing. It is difficult to debug as it freezes totally and quite annoying as I cannot interrupt with C-g. Are there options to run tramp in a way it does not collapse the whole emacs? I could then try to guess which package interact with it by deactivating/activating them…
It seems to work properly if I open emacs with emacs -Q


Have you tried sending USR2 kill signal to Emacs when it freezes? That should break and show a stack trace.
I thought it was doing the same in all my computers, but now I realize it is working flawlessly on my work computer (it is usually the one I connect to more than the other way around). So I will have to wait to come back home to test… Thanks!
I got this: ‘’’ Debugger entered–entering a function:
I have replaced hostname and username with those words instead. What do you think? May it be the tramp-wait-for-regexp or the dired-find-file. I don’t know whether last things before the kill -12 are on the top or on the bottom…
The top is where you interrupted it, and the bottom is the last interactive command you entered,
dired-find-file.I’m curious what the output and return value of the command
ssh hostname 'test -d /home/username/Documentos/PFCs'is. That is what you interrupted when you sent the signal, it was waiting for a response.I did not receive a ping because it was a nested comment (TIL)
I tend to start digging into the source (with
M-.to jump to definitions andM-,to pop back). I also tend to break, presscto continue, then break again and see if I’m still in the same spot. I don’t see much wrong with this. It looks like you’re opening a file on a remote host and it seems to be rendering these files. Perhaps that always happens.I do see an advice
dired-details-hide. I vaguely recall there being an issue with something with pretty dired (but I think that was withall-the-icons).It could also be that tramp’s connection broke. Then call
tramp-cleanup-this-connection. Something else is probably going haywire, but using ssh’s ControlMaster and reusing the sockets can help with slowdowns then. Using tramp is always going to be slower due to the connection, yet if something freezes it’s probably a package interfering and here possibly fontification.