From unknown Tue Jun 17 01:43:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62817: Extension request: Must-Recover flag for files with auto-save information Resent-From: Johann =?UTF-8?Q?H=C3=B6chtl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Apr 2023 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 62817@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16814041674211 (code B ref -1); Thu, 13 Apr 2023 16:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Apr 2023 16:42:47 +0000 Received: from localhost ([127.0.0.1]:44537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pn022-00015r-Fi for submit@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 ) id 1pn01z-00015h-9h for submit@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 ) id 1pn01y-0005VF-9I for bug-gnu-emacs@gnu.org; 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 ) id 1pn01l-0000gZ-5t for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 12:42:41 -0400 Received: by mail-oi1-x22d.google.com with SMTP id bb20so5428661oib.12 for ; 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: Johann =?UTF-8?Q?H=C3=B6chtl?= Date: Thu, 13 Apr 2023 18:42:15 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000e35d6d05f93a6897" Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=johann.hoechtl@gmail.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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
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= .

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.
=
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.

--000000000000e35d6d05f93a6897-- From unknown Tue Jun 17 01:43:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62817: Extension request: Must-Recover flag for files with auto-save information Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Apr 2023 08:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Johann =?UTF-8?Q?H=C3=B6chtl?= Cc: 62817@debbugs.gnu.org Received: via spool by 62817-submit@debbugs.gnu.org id=B62817.16815470059298 (code B ref 62817); Sat, 15 Apr 2023 08:24:01 +0000 Received: (at 62817) by debbugs.gnu.org; 15 Apr 2023 08:23:25 +0000 Received: from localhost ([127.0.0.1]:48180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnbBt-0002Pu-Bk for submit@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 ) id 1pnbBr-0002Ph-Bl for 62817@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 ) 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 ) 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@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Johann =?UTF-8?Q?H=C3=B6chtl?= on Thu, 13 Apr 2023 18:42:15 +0200) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Johann Höchtl > 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? From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 04 04:37:56 2023 Received: (at control) by debbugs.gnu.org; 4 Sep 2023 08:37:56 +0000 Received: from localhost ([127.0.0.1]:48400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qd55o-0008Hl-Fz for submit@debbugs.gnu.org; Mon, 04 Sep 2023 04:37:56 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:51618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qd55k-0008HR-OY for control@debbugs.gnu.org; Mon, 04 Sep 2023 04:37:54 -0400 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2bcb0b973a5so17255121fa.3 for ; Mon, 04 Sep 2023 01:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693816667; x=1694421467; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=OmkK5MN+HdkNg2pLiyOKp6ivjLdte9lYBKHtc+3mTlM=; b=I6AVVY9Z1iJRnz6DjqipaMO2iao2xxJFvXCimSYiLJq89h4oviAcHMZq7GO13B39KM +D+6iPAorhoBSfIuUBwETLhk6En9ymlXwqqbL6AFgwmHQxU7rIy4mLr2ZAzQKhhN56kK PRe9SvRRgkddf3kM6NkVh6Yak3hAIIXH9RLQGXBbUmLLxF8ZksZ2J4nB9g2j02nk2nGk 5M5F6DUMwkEEBXKUhIURFLFhkoFjBgu7LaK0NF2HtQwS4IX6jmzTyiv8yABnikDRiUIq lw2wGGAW3bU6sd8s+wpsxZu6+Finla9G+MCz0SkLTYn3xixwwepLdtuAF4P2PqU7PcYq sGaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693816667; x=1694421467; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OmkK5MN+HdkNg2pLiyOKp6ivjLdte9lYBKHtc+3mTlM=; b=Wi022zesjfAlxGtQNKPXxVMnBNiDBddHCEcnoyeyb5JdhpESv/YuKMqHq5ffpRPTzV 1LHfeYPLr6EoQit/apKIRLfZwC4S8nFOF6UAqVO3pcJudrlw6Wv+ynmT6x22NILHuacE JF2fGB9Jpdeia0m17Y1UCM9Pz6boBAb7iAfNbIJ+2D/UXZyqdaGplqx09JxDOIHvRrDD /dBjev5OgXZ3Ra/fqWoWCROhsLY4EpsDhwKBjrnuV6e6lm+lFpi+qAwJt/uclH0A6i8M OqVeSX8OqEL8zokX3o9AG+r2cSD2NnPvLAY3QVcze1DSFVEm/loXM/enx960ky6kqkuI c40g== X-Gm-Message-State: AOJu0YzcNVUAmSBKFavQw/sZlABP+gn38NHR/Wgzy/PT1opKRDSjdlSj /nIL/aClTY51/q1EEsWOrPgMJ/CIRTcV/4Vc/+CjmnMqkF0= X-Google-Smtp-Source: AGHT+IGrR8x+xSxqU7pEqH0JoApVdiZL0S7oN2sW7LXKkw/1IntM/utoyifg1qrsKojSru94ySPASysw0cM7sGrRhGg= X-Received: by 2002:a2e:9dc4:0:b0:2b9:53bd:47a7 with SMTP id x4-20020a2e9dc4000000b002b953bd47a7mr6657423ljj.30.1693816666865; Mon, 04 Sep 2023 01:37:46 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 4 Sep 2023 01:37:46 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Mon, 4 Sep 2023 01:37:46 -0700 Message-ID: Subject: control message for bug #62817 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 62817 wishlist quit