From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62260: 30.0.50; [PATCH] Restrict auto-save file mode Date: Fri, 24 Mar 2023 11:35:07 +0100 Message-ID: <87h6uaphd0.fsf@ledu-giraud.fr> References: <87v8iynl5c.fsf@ledu-giraud.fr> <83h6uiawvv.fsf@gnu.org> <87r0tlnbtz.fsf@ledu-giraud.fr> <83bkkpc2x6.fsf@gnu.org> <83a609c2q7.fsf@gnu.org> <87ilexn9tc.fsf@ledu-giraud.fr> <838rftbzj3.fsf@gnu.org> <837cvdbykw.fsf@gnu.org> <87edplm0ft.fsf@ledu-giraud.fr> <83sfe19bmk.fsf@gnu.org> <87r0tksyma.fsf@gmx.de> <87r0tk6d09.fsf@ledu-giraud.fr> <87r0tj1wbv.fsf@gmx.de> <87lejpm6vk.fsf@ledu-giraud.fr> <875yaro2mm.fsf@gmx.de> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6485"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 62260@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 24 16:08:03 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfj1O-0000mC-8o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Mar 2023 16:08:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pff8Z-0003ro-71; Fri, 24 Mar 2023 06:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pff8U-0003oS-DN for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 06:59:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pff8S-00022K-Aj for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 06:59:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfemA-0002bO-2R for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 06:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Mar 2023 10:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62260 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62260-submit@debbugs.gnu.org id=B62260.16796541359965 (code B ref 62260); Fri, 24 Mar 2023 10:36:02 +0000 Original-Received: (at 62260) by debbugs.gnu.org; 24 Mar 2023 10:35:35 +0000 Original-Received: from localhost ([127.0.0.1]:39913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfelj-0002af-CR for submit@debbugs.gnu.org; Fri, 24 Mar 2023 06:35:35 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:10740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfelb-0002a9-3W for 62260@debbugs.gnu.org; Fri, 24 Mar 2023 06:35:34 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=i8vxRBC+ qYVYht1WEOIvI0CGB4UuFc0B2W0wJspqHXc=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=+gILFaFOIh6sA3AgvgzUOSVP6sdtKD N2M0Qc1X9s83aoaX8Ap6rG+KOduEpJn1U9+i6YZKHiV1z2xV7qUwZTDg== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=i8vxRBC+qYVYht1W EOIvI0CGB4UuFc0B2W0wJspqHXc=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=TkoIVEKJCCjteAh3SrlJe6F0OQDhod9goBTio4 YzWJIj/LZxoIOZ5RBIVMjoeLarx7hKXh05DsJE2IyJOPl0ieXAUUkNAkLELFfgx7MXUQ+s QSnyfMWaJwQMLwn4qoXimD7DHgsZ1XP3RdSxOxd0WZQ7PIgqPeFtJxk0hDR2VuAIFhB0bw c3NpxPQZ/0aB8LLG7JIumAiU4Vu20OdDS+3ULcT2SPDsrwWY6H+er9SUemhBdo45lakGE7 Rqq4ppxmkGqtEFQonE1m6gcE1FBD+TGl3OEQx+oy1LVN7vYxmnHOdWtjzof87UI8sRu13r Kf/HBQHghfCsgGIg0Bbgn+Dg== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 1259e93e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 24 Mar 2023 11:35:09 +0100 (CET) In-Reply-To: <875yaro2mm.fsf@gmx.de> (Michael Albinus's message of "Thu, 23 Mar 2023 17:26:25 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258499 Archived-At: Michael Albinus writes: [...] > For the time being, I have added the possibility to suppress auto-save > for remote files. The Tramp manual says now: > > =E2=88=92 Keep auto-save files local. This is already the default > configuration in Emacs, don=E2=80=99t change it. If you want to > disable auto-saving for remote files at all, set > =E2=80=98remote-file-name-inhibit-auto-save=E2=80=99 to =E2=80= =98t=E2=80=99, 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 > =E2=80=98buffer-auto-save-file-name=E2=80=99. If you, for exam= ple, want to > disable auto-saving for all =E2=80=98sudo=E2=80=99 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, --=20 Manuel Giraud