GNU bug report logs -
#79252
Option 'file-precious-flag' creates unrelatable/untrackable temporary filenames
Previous Next
Full log
Message #35 received at 79252 <at> debbugs.gnu.org (full text, mbox):
"R. Diez" <rdiez-2006 <at> rd10.de> writes:
Hi,
> At first, I thought that Tramp was the one creating the temporary file, so I suggested this change to Tramp:
>
>> For a file like:
>>
>> myfile.txt
>>
>> I suggest a temporary filename like:
>>
>> myfile.txt.EmacsTrampTmp1eghjG
>
> Michael Albinus' reply was:
>
>> That wouldn't be possible. An extension, like ".txt", must be kept.
>
> See the full text here: https://lists.gnu.org/archive/html/tramp-devel/2025-08/msg00008.html
>
> Your patch does change the file extension, but I do not know whether that is actually a problem. The original temporary filename had no extension anyway.
Keeping the extension of a file in a respective temp file is needed, if
you want to apply actions on that temp file. For example, set a proper
major mode for the temp file according to auto-mode-alist.
In the given case, use a temporary file for handling file-precious-flag,
it isn't needed, indeed.
Best regards, Michael.
This bug report was last modified 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.