Hi all:

I am troubleshooting the "interesting" problem with Emacs Tramp I described 
here:

https://lists.gnu.org/archive/html/help-gnu-emacs/2025-08/msg00061.html

It is going to take a while, and I am short of time at the moment, not the best 
combination.

Michael Albinus already suggested (setq tramp-verbose 10), but then many Tramp 
debug buffers are created, even for files from the history I haven't opened 
today, the log is too extensive, and it is full of internal information like 
server and user names which I would rather not publish.

One of the issues I am facing is that Tramp is leaving behind temporary files 
on the remote server like this:

-rw-r--r-- 1 root root  0 2025-08-10 11:02 tmp1eghjG

You may not realise that Tramp is littering the disk that way, and when you (or 
some other sysadmin) realise about those orphaned files next month, such 
filenames make it hard to know exactly was caused the problem and what file it 
was related to.

I suggest a change in Tramp's temporary file naming policy. For a file like:

myfile.txt

I suggest a temporary filename like:

myfile.txt.EmacsTrampTmp1eghjG

That way, you immediately know what is leaving the temporary file behind and 
what file it is related to.

Regards,
  rdiez

Reply via email to