GNU bug report logs - #62817
Extension request: Must-Recover flag for files with auto-save information

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Johann Höchtl <johann.hoechtl@HIDDEN>; dated Thu, 13 Apr 2023 16:43:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 62817 <at> debbugs.gnu.org:


Received: (at 62817) by debbugs.gnu.org; 15 Apr 2023 08:23:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 04:23:25 2023
Received: from localhost ([127.0.0.1]:48180 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pnbBt-0002Pu-Bk
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2023 04:23:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40004)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pnbBr-0002Ph-Bl
 for 62817 <at> debbugs.gnu.org; Sat, 15 Apr 2023 04:23:24 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pnbBl-0004Ca-V0; Sat, 15 Apr 2023 04:23:17 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=f+E/aMLH7c3W940QAwIp5DgcAmNYVRQoUcTnJlmBiII=; b=LvQzac/r2O30O3iUGoad
 NV3pftKfL4AQS0c52NpNu1JBmktpXp2FF1GoCqvFHQcnaJaLvSRLSXczR4sz5w9dJa+lz5hlpi1+y
 pMuxaHZraVVzWyZQBek2v7qPjYScc+xzfA83jwHDAHJeb5Y9U/C/MmE3Xfhw/Np/nM1EGVQFaHdRc
 BwTY8dzgaX9ZzNiR0LVIMLhETROhtlzqRt/N2ZK0NqSOSDxju99ry5sQ6LVCccdW3cIimYNepeaXL
 NwS8Bnv8+wx+LqE21YkpXwIgpFKBpRlZyfVGO2aAFYTuSG1k5IJcNbMSR81PlTFfcLHMpDIzHqdT9
 Gvji5OP2n2apqw==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pnbBk-00068K-T6; Sat, 15 Apr 2023 04:23:17 -0400
Date: Sat, 15 Apr 2023 11:23:17 +0300
Message-Id: <83bkjpeeq2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Johann =?utf-8?Q?H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
In-Reply-To: <CAH4isRzcRH4yg_mAJ2EGk36n3haKfuzT2UrdQgv2U=+bbgE7pg@HIDDEN>
 (message from Johann =?utf-8?Q?H=C3=B6chtl?= on Thu, 13 Apr 2023 18:42:15
 +0200)
Subject: Re: bug#62817: Extension request: Must-Recover flag for files with
 auto-save information
References: <CAH4isRzcRH4yg_mAJ2EGk36n3haKfuzT2UrdQgv2U=+bbgE7pg@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62817
Cc: 62817 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Johann Höchtl <johann.hoechtl@HIDDEN>
> Date: Thu, 13 Apr 2023 18:42:15 +0200
> 
> Currently when Emacs crashes, it keeps a list of affected files in auto-save-list. Alternatively when
> opening a file where auto-save information is more current than the actual file, emacs will display a
> message in the status buffer and keep the entry in messages.
> 
> However, for novice users, this helpful hint can be easily missed, eg. if a verbose mode prints
> messages in the status buffer, like lsp-modes comes to mind. In such a case the hint that a more
> recent autosave file exists is displayed and will get quickly replaced with other messages. If the user is
> not aware of recover-this-file, he will likely overwrite more recent auto-save information with
> subsequent edits.
> 
> I propose that this is bad behaviour and a configuration exists which halts any further processing until
> the user actively finishes what a manual recover-this-file would offer him to do. This feature makes
> sense, especially as of Emacs 29? auto-save-files can be reliably deleted by Emacs itself.

I don't think delaying initialization is a good idea.  Instead, how
about using the warnings facility for showing these messages?  See the
"Warnings" node in the ELisp Reference manual for more details.  In
particular, we have a "delayed warnings" feature, which allows to
delay the actual display of the warnings till after the running
command finishes.

Would you like to work on a patch along these lines?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62817; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Apr 2023 16:42:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 13 12:42:46 2023
Received: from localhost ([127.0.0.1]:44537 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pn022-00015r-Fi
	for submit <at> debbugs.gnu.org; Thu, 13 Apr 2023 12:42:46 -0400
Received: from lists.gnu.org ([209.51.188.17]:32808)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <johann.hoechtl@HIDDEN>) id 1pn01z-00015h-9h
 for submit <at> debbugs.gnu.org; Thu, 13 Apr 2023 12:42:44 -0400
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 <johann.hoechtl@HIDDEN>)
 id 1pn01y-0005VF-9I
 for bug-gnu-emacs@HIDDEN; Thu, 13 Apr 2023 12:42:42 -0400
Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <johann.hoechtl@HIDDEN>)
 id 1pn01l-0000gZ-5t
 for bug-gnu-emacs@HIDDEN; Thu, 13 Apr 2023 12:42:41 -0400
Received: by mail-oi1-x22d.google.com with SMTP id bb20so5428661oib.12
 for <bug-gnu-emacs@HIDDEN>; Thu, 13 Apr 2023 09:42:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1681404147; x=1683996147;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=hsDankpvVpDxHyegpIPHNKkjsgDvl0T8f+LtwQ2RHtk=;
 b=FlbPwHBBbGzE2fAw/bVdmFXp9kgCX5pAkGGxLwoRxn3hGr6o144sgLThqpKCXsSikh
 C0QsndOaGVbKl7OuNRgJZsPrh00KlyGxs9+hk6K8yfgVlN9rDd0n+AjoivYEvZfTOBbZ
 D8gL2SZWIaweWJMclwP5ik52uZEYaHx4bVW2MzdS6K6dLW1Ndisf7CHAr41avljk7BOM
 v9jQwNbGu6RDsX59xYW9dvWqYrmrDaxWqYIWeiYGJBRKm1gTul7jNghbkN4Et8//O7B8
 o+fewKWBlVtMoOqIc5j1QCL1Z7p4l93LtWHhw7QmaN4WMdvmDIny9RmMfFd28loAVygY
 90ew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1681404147; x=1683996147;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=hsDankpvVpDxHyegpIPHNKkjsgDvl0T8f+LtwQ2RHtk=;
 b=lkLZnKYAkmn1yekQPk/mTXQ+qlTCmsOC84wcy/lSCdYhp0J8QIfH2RTsyWLXLsSoXc
 WVefwDp5XUsBSne6LbmZH4j+ibVZ5uA+OMDOCayEYUjKOZpkHVMNtX3k9uELflAdZopb
 J4BHejggjL8HB7PX1wBh71GS6Cr1A/cmBHEWwkSN1dqf2ejh2w/4HrrWaMZpg1kKsVQt
 tShMsYXyaxMuX7HuXv42Pv68CkbRfafWkcdBX6CF+MIhQxlFI6PN/fjywQwrD9+sx6Ed
 UCQHiR5i5DMc8dMdk+X9+wX3dQ91cWtnAGQY+GFJuNuMtiuvZT4s1IYiRwZJF8anpi9Q
 02Wg==
X-Gm-Message-State: AAQBX9feRU/ao2GvcW/Df5ER6gRCCkC3Krr767VS1ET0GqUsoSe1wJ8t
 X4iDkq7UgPMgbyjTY278viLzdHlg4GG+IdHB2lKnNg8tqQ==
X-Google-Smtp-Source: AKy350Z1FoWIgf7FMf4+ghatvLj1j6rb2N+OUz0+9+EtklSqPzxvzuvw9+EppXA70Ez280exJHbGlVBHLjf3en3QN4M=
X-Received: by 2002:aca:111a:0:b0:386:e7e7:d93d with SMTP id
 26-20020aca111a000000b00386e7e7d93dmr589184oir.5.1681404146701; Thu, 13 Apr
 2023 09:42:26 -0700 (PDT)
MIME-Version: 1.0
From: =?UTF-8?Q?Johann_H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
Date: Thu, 13 Apr 2023 18:42:15 +0200
Message-ID: <CAH4isRzcRH4yg_mAJ2EGk36n3haKfuzT2UrdQgv2U=+bbgE7pg@HIDDEN>
Subject: Extension request: Must-Recover flag for files with auto-save
 information
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000e35d6d05f93a6897"
Received-SPF: pass client-ip=2607:f8b0:4864:20::22d;
 envelope-from=johann.hoechtl@HIDDEN; helo=mail-oi1-x22d.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--000000000000e35d6d05f93a6897
Content-Type: text/plain; charset="UTF-8"

Currently when Emacs crashes, it keeps a list of affected files in
auto-save-list. Alternatively when opening a file where auto-save
information is more current than the actual file, emacs will display a
message in the status buffer and keep the entry in messages.

However, for novice users, this helpful hint can be easily missed, eg. if a
verbose mode prints messages in the status buffer, like lsp-modes comes to
mind. In such a case the hint that a more recent autosave file exists is
displayed and will get quickly replaced with other messages. If the user is
not aware of recover-this-file, he will likely overwrite more recent
auto-save information with subsequent edits.

I propose that this is bad behaviour and a configuration exists which halts
any further processing until the user actively finishes what a manual
recover-this-file would offer him to do. This feature makes sense,
especially as of Emacs 29? auto-save-files can be reliably deleted by Emacs
itself.

As discussed on reddit
https://www.reddit.com/r/emacs/comments/z6ulwe/comment/iyb6bzm/?context=3

--000000000000e35d6d05f93a6897
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Currently=C2=A0when Emacs crashes, it keeps a list of affe=
cted=C2=A0files in auto-save-list. Alternatively=C2=A0when opening a file w=
here auto-save information=C2=A0is more current than the actual file, emacs=
 will display a message in the status buffer and keep the entry in messages=
.<div><br></div><div>However, for novice users, this helpful hint can be ea=
sily missed, eg. if a verbose mode prints messages in the status buffer, li=
ke lsp-modes comes to mind. In such a case the hint that a more recent auto=
save file exists is displayed and will get quickly replaced with other mess=
ages. If the user is not aware of recover-this-file, he will likely overwri=
te more recent auto-save information with subsequent=C2=A0edits.</div><div>=
<br></div><div>I propose that this is bad behaviour and a configuration exi=
sts which halts any further processing until the user actively finishes wha=
t a manual recover-this-file would offer him to do. This feature makes sens=
e, especially as of Emacs 29? auto-save-files can be reliably deleted by Em=
acs itself.</div><div><br></div><div>As discussed on reddit=C2=A0<a href=3D=
"https://www.reddit.com/r/emacs/comments/z6ulwe/comment/iyb6bzm/?context=3D=
3">https://www.reddit.com/r/emacs/comments/z6ulwe/comment/iyb6bzm/?context=
=3D3</a></div></div>

--000000000000e35d6d05f93a6897--




Acknowledgement sent to Johann Höchtl <johann.hoechtl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#62817; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 4 Sep 2023 08:45:01 UTC

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