GNU bug report logs - #62260
30.0.50; [PATCH] Restrict auto-save file mode

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Sat, 18 Mar 2023 15:19:01 UTC

Severity: normal

Tags: patch

Merged with 57395

Found in versions 28.1, 30.0.50

Full log


View this message in rfc822 format

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 62260 <at> debbugs.gnu.org
Subject: bug#62260: 30.0.50; [PATCH] Restrict auto-save file mode
Date: Fri, 24 Mar 2023 08:34:08 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Manuel Giraud <manuel <at> ledu-giraud.fr> writes:
>
>> Hi Michael,
>
> Hi Manuel,
>
>> What do you think of the attached patch?
>
> Honestly, I haven't had enough time to review it in detail. My gut
> feeling tells me that it looks to complicate and too much hard-coded,
> but I will need to review. I hope I could do it next days.

Hi Michael,

Ok, I understand that.  My patch is a bit hard-coded you're right but I
think it will reduce false positive triggering the user prompt about
unsafe auto-save.

[...]

> Please take into account, that tramp-allow-unsafe-temporary-files is not
> only for auto-save files. It is used also for backup and file locks. See
> functions tramp-handle-find-backup-file-name, tramp-handle-lock-file and
> tramp-handle-make-auto-save-file-name.

Ok so it might not be possible to have this three state
'tramp-allow-unsafe-temporary-files' I propose.

> For the time being, I have added the possibility to suppress auto-save
> for remote files. The Tramp manual says now:

Thanks.  That looks great.  IIUC, with this, one can disable only
auto-save (not locking nor backup) on a per connection basis.  I guess
that it could replace what I was proposing then.
-- 
Manuel Giraud




This bug report was last modified 2 years and 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.