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 11:35:07 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

[...]

> For the time being, I have added the possibility to suppress auto-save
> for remote files. The Tramp manual says now:
>
>         − Keep auto-save files local.  This is already the default
>           configuration in Emacs, don’t change it.  If you want to
>           disable auto-saving for remote files at all, set
>           ‘remote-file-name-inhibit-auto-save’ to ‘t’, but think about
>           the consequences!
>
>           If you want to disable auto-saving just for selected
>           connections, for example due to security considerations, use
>           connection-local variables in order to set
>           ‘buffer-auto-save-file-name’.  If you, for example, want to
>           disable auto-saving for all ‘sudo’ connections, apply the
>           following code.  *Note (emacs)Connection Variables::.
>
>                (connection-local-set-profile-variables
>                  'my-auto-save-profile
>                  '((buffer-auto-save-file-name . nil)))
>
>                (connection-local-set-profiles
>                 '(:application tramp :protocol "sudo")
>                 'my-auto-save-profile)

Hi again Michael,

Just a quick "heads-up".  I've tried this new feature and it works
great.  But I still think we could reduce the false positives (as
enumerated by Trent) that are triggering the user prompt with my patch
or something along the line.

There is also still the issue of what should be done when the user
answers "no" to this prompt.  Should we not open the file? Disable
auto-save for this file?

Best regards,
-- 
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.