GNU bug report logs - #79522
30.2; Ctrl-G fails to exit from "<file> changed on disk; really edit the buffer?"

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; Reported by: "Bob Floyd" <bobfloyd@HIDDEN>; Keywords: unreproducible; Done: Eli Zaretskii <eliz@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug closed, send any further explanations to 79522 <at> debbugs.gnu.org and "Bob Floyd" <bobfloyd@HIDDEN> Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) unreproducible. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 79522) by debbugs.gnu.org; 18 Oct 2025 08:08:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 18 04:08:58 2025
Received: from localhost ([127.0.0.1]:37656 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vA1zm-0003j5-5E
	for submit <at> debbugs.gnu.org; Sat, 18 Oct 2025 04:08:58 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56722)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>)
 id 1vA1zj-0003io-Tw; Sat, 18 Oct 2025 04:08:56 -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 1vA1zc-0005fv-T9; Sat, 18 Oct 2025 04:08:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=P39INdagXAFQ/DdRFJedXOeOAC7NOx08rdJHjK+XWow=; b=C0ubefOpWqiY
 u1f9RrtCC2Py8v7LKyyFNIv4eyjZhkdRY4XcMhjVx6OxgrQZ7u0tyHfcXV8qGDXlWdMVQYzVdUl+u
 svCCtFhFAt48ifl+m3htRGdVlXn0/kEQMf4rrlPPoxfa+heIhh7x5FBCh3sbBJ9Z4KwXoNqjF2xXE
 I2aydExsIEhRk+TpqOCUZimMbVGf13RUStdC8gi8bN3y4u7+Nd39Ufq3LuWRFVJrqwiBX/lFQUPG5
 X51//ScGK0Vd6ump61ZAGT/g6YiESEEo+8wmkgagbq6630K/fha+ScUUqUUOVgztegBWFmdpqzGdY
 yLb2MAKuBQ3J//O4OzgtvQ==;
Date: Sat, 18 Oct 2025 11:08:45 +0300
Message-Id: <86347gfx82.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bobfloyd@HIDDEN
In-Reply-To: <86jz1h4574.fsf@HIDDEN> (message from Eli Zaretskii on Mon, 29
 Sep 2025 19:02:55 +0300)
Subject: Re: bug#79522: 30.2; Ctrl-G fails to exit from "<file> changed on disk;
 really edit the buffer?"
References: <002b01dc2f23$8faf8d80$af0ea880$@comcast.net>
 <86cy7ca066.fsf@HIDDEN> <000001dc3159$91d5f1c0$b581d540$@comcast.net>
 <86jz1h4574.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79522
Cc: 79522 <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 (---)

tags 79522 unreproducible
close 79522
thanks

> Cc: 79522 <at> debbugs.gnu.org
> Date: Mon, 29 Sep 2025 19:02:55 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: "Bob Floyd" <bobfloyd@HIDDEN>
> > Cc: <79522 <at> debbugs.gnu.org>
> > Date: Mon, 29 Sep 2025 08:56:06 -0700
> > 
> > Hi Eli,
> > 
> > No surprise that you could not reproduce this, and I can't tell you exactly what I was doing, other than to say I probably had two of these messages on the emacs stack.
> > 
> > Just wanted to report the issue in case other users encounter something similar.
> 
> Thanks.  However, without a reproducible recipe there's little we can
> do about this strange problem.

No further comments, so I'm now closing this bug as not reproducible.
If new information is found, please reopen with that information.

Thanks.




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

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


Received: (at 79522) by debbugs.gnu.org; 29 Sep 2025 16:03:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 29 12:03:08 2025
Received: from localhost ([127.0.0.1]:52949 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v3GLD-00011G-Uc
	for submit <at> debbugs.gnu.org; Mon, 29 Sep 2025 12:03:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46082)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1v3GL9-00010g-R1
 for 79522 <at> debbugs.gnu.org; Mon, 29 Sep 2025 12:03:04 -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 1v3GL3-0003Ou-JB; Mon, 29 Sep 2025 12:02:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=qFuM3I6nrmMK2VGbLT7NenNoqqRAFHKaKJ2JlTiEa2A=; b=Kh96jahyXfcx
 7sta+Hy6mGp+mdROGgpLcw+POPyRLy5ACvgW7C1QfW3GtzUXUm5OAzgRGRiLScpbjJobzSyJfEjGj
 ijlOirHR9wioqMvSk1QKCdS5rh1MqWdu7zaNW3KpiyNDpOBvxTeIx0Ef4iY3GbpF1iSWs+ptdJ3PM
 WFE10BjCR2QGj4s9fba0uTJmpfefJ/4uEOSXft7Sf7CzUCY+kBBot2ZMBtOKCEk7vYFROHy4MVqrH
 OIkQcIOH/dkYXb8rD4invENjbdhsyO8ujPPq2P0WAbwJG8ExpfXmoobh7vVsipGotic6uiubQxA+L
 S7QMBb34Y35S3aS4RGjM0A==;
Date: Mon, 29 Sep 2025 19:02:55 +0300
Message-Id: <86jz1h4574.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Bob Floyd" <bobfloyd@HIDDEN>
In-Reply-To: <000001dc3159$91d5f1c0$b581d540$@comcast.net>
 (bobfloyd@HIDDEN)
Subject: Re: bug#79522: 30.2; Ctrl-G fails to exit from "<file> changed on disk;
 really edit the buffer?"
References: <002b01dc2f23$8faf8d80$af0ea880$@comcast.net>
 <86cy7ca066.fsf@HIDDEN> <000001dc3159$91d5f1c0$b581d540$@comcast.net>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79522
Cc: 79522 <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: "Bob Floyd" <bobfloyd@HIDDEN>
> Cc: <79522 <at> debbugs.gnu.org>
> Date: Mon, 29 Sep 2025 08:56:06 -0700
> 
> Hi Eli,
> 
> No surprise that you could not reproduce this, and I can't tell you exactly what I was doing, other than to say I probably had two of these messages on the emacs stack.
> 
> Just wanted to report the issue in case other users encounter something similar.

Thanks.  However, without a reproducible recipe there's little we can
do about this strange problem.




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

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


Received: (at 79522) by debbugs.gnu.org; 29 Sep 2025 15:56:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 29 11:56:20 2025
Received: from localhost ([127.0.0.1]:52935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v3GEe-0006NS-1J
	for submit <at> debbugs.gnu.org; Mon, 29 Sep 2025 11:56:20 -0400
Received: from resqmta-h2p-567353.sys.comcast.net
 ([2001:558:fd02:2446::3]:50798)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bobfloyd@HIDDEN>)
 id 1v3GEZ-0006NC-2y
 for 79522 <at> debbugs.gnu.org; Mon, 29 Sep 2025 11:56:16 -0400
Received: from resomta-h2p-555359.sys.comcast.net ([96.102.179.201])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits)
 (Client did not present a certificate)
 by resqmta-h2p-567353.sys.comcast.net with ESMTPS
 id 3ChEvjljcqFuc3GESvBwEa; Mon, 29 Sep 2025 15:56:08 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
 s=20190202a; t=1759161368;
 bh=XGFpumH0jEbqj489lkW9FaC/V2iledvY+K/H/gmbYN8=;
 h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version:
 Content-Type:Xfinity-Spam-Result;
 b=Syh+rpVOt91RBHqXoilH8TxmXnsdKWT/WrWf1Umla7A5hJz63Dc31HJi3h81iESCc
 yOsBnuOfOaJqDe7TfY42CZ53yt9SANQiZAq3Wo39HR86eA1YpYqostZxgnHm6Bnz7A
 LXLHQDR2WaVTVWbu8nmCG++1sk06AhfveA0J3iUpBKf2Qe/jqw5Gl0R0zS8c5BZx9K
 BiFd0aiuXiARbwRVCgdlRE67Z4zPMq6pCFu7Ey9XrV6DoPGadzscUDvfw0zuaLMSNF
 EnDMaXPmcO4LhJzoYCqtW0SPXfNMfb3a332oyjhnXN03Zk1vE2mxQtsjFUg/RJQW1G
 qfPeDcuE9dGxA==
Received: from Cache ([IPv6:2601:647:4400:4726::82])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits)
 (Client did not present a certificate)
 by resomta-h2p-555359.sys.comcast.net with ESMTPSA
 id 3GEPvOKGQentI3GEQviH0c; Mon, 29 Sep 2025 15:56:07 +0000
From: "Bob Floyd" <bobfloyd@HIDDEN>
To: "'Eli Zaretskii'" <eliz@HIDDEN>
References: <002b01dc2f23$8faf8d80$af0ea880$@comcast.net>
 <86cy7ca066.fsf@HIDDEN>
In-Reply-To: <86cy7ca066.fsf@HIDDEN>
Subject: RE: bug#79522: 30.2; Ctrl-G fails to exit from "<file> changed on disk;
 really edit the buffer?"
Date: Mon, 29 Sep 2025 08:56:06 -0700
Message-ID: <000001dc3159$91d5f1c0$b581d540$@comcast.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQIu3GnbxxOB0u8vdWX9GBY93d9MtQItV4eos/OKPhA=
Content-Language: en-us
X-CMAE-Envelope: MS4xfHUza99Z7WlwYLkjgX9McSl7tjCmpZ96boZmdXR3JJy1eLY6X+qMBZ2OvQur32FeAmEEOzZ4EIXoSD3C2enOdYfwyd7zx+LNFlpHGAF+Jpev6Jhex7K9
 4dgUkW56rFQG8W2idKjRnvCug+wNPwGTSSi8JdN0mXzRnVHiqb8GXa+8B80faEw+f8Ei2jlf4yxLm877a11cs9v5xpeJOTCUxZwjcGNiRbH9n+ZA3Ic4LR4A
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79522
Cc: 79522 <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: -1.0 (-)

Hi Eli,

No surprise that you could not reproduce this, and I can't tell you =
exactly what I was doing, other than to say I probably had two of these =
messages on the emacs stack.

Just wanted to report the issue in case other users encounter something =
similar.

Here is the detail:


In GNU Emacs 30.2 (build 2, x86_64-w64-mingw32) of 2025-08-14 built on
 AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Enterprise =
(v10.0.2009.19045.6332)

Configured using:
 'configure --with-modules --without-dbus =
--with-native-compilation=3Daot
 --without-compress-install --with-tree-sitter CFLAGS=3D-O2
 prefix=3D/g/rel/install-emacs-30.2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

(NATIVE_COMP present but libgccjit not available)

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message yank-media puny rfc822 mml
mml-sec epa epg rfc6068 epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-cvs vc-rcs
log-view easy-mmode pcvs-util etags fileloop generator xref project
cus-start cus-load misearch multi-isearch fortran ediff ediff-merg
ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util
thingatpt verilog-mode compile text-property-search diff time-date
dired-aux dired dired-loaddefs sh-script rx smie treesit executable
files-x shell pcomplete comint ansi-osc ansi-color ring edmacro kmacro
web-mode advice derived printing ps-print ps-print-loaddefs lpr cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs finder-inf tex-site cargo-autoloads lsp-mode-autoloads
ht-autoloads f-autoloads dash-autoloads lv-autoloads
markdown-mode-autoloads projectile-autoloads info rust-mode-autoloads
s-autoloads spinner-autoloads package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel touch-screen dos-w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty
move-toolbar make-network-process native-compile emacs)

Memory information:
((conses 16 388630 55852) (symbols 48 19591 0) (strings 32 90225 3767)
 (string-bytes 1 2683174) (vectors 16 33419)
 (vector-slots 8 585265 46580) (floats 8 514 9881)
 (intervals 56 18130 0) (buffers 992 54))

-----Original Message-----
From: Eli Zaretskii <eliz@HIDDEN>=20
Sent: Friday, September 26, 2025 11:18 PM
To: Bob Floyd <bobfloyd@HIDDEN>
Cc: 79522 <at> debbugs.gnu.org
Subject: Re: bug#79522: 30.2; Ctrl-G fails to exit from "<file> changed =
on disk; really edit the buffer?"

> Date: Fri, 26 Sep 2025 13:24:27 -0700
> From:  "Bob Floyd" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>=20
> I have observed two really bad bugs in emacs since around 29.3.

I cannot reproduce this, neither with Emacs 29.3, nor Emacs 30.2, nor
with what will become Emacs 31.  C-g does exit the prompt, and typing
"y" does not corrupt the file's contents.

> This is one of them. In the notification window:
>=20
> <file> changed on disk; really edit the buffer? (y, n, r or C-h)
>=20
> Ctrl-g fails to exit from the notification. =E2=80=9Cy =
<enter>=E2=80=9D enters the text =E2=80=9Cy \n=E2=80=9D but does nothing =
else. It is stuck.
>=20
> Here=E2=80=99s the bad thing:
>=20
> <file> now contains:
>=20
> <file> changed on disk; really edit the buffer? (y, n, r or C-h)
>=20
> The original contents of <file> are gone.
>=20
> NEVER, NEVER have I lost a files contents because emacs wrote =
something else in it.

Like I said: not reproducible here.  If this is in "emacs -Q", please
show a complete recipe for reproducing the problem, starting with the
Emacs invocation.  If the problem does not happen in "emacs -Q",
please investigate which of your customizations causes this, and post
the details once you find out.

Also, please tell on what OS do you see this.

Thanks.





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

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


Received: (at 79522) by debbugs.gnu.org; 27 Sep 2025 06:18:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 27 02:18:38 2025
Received: from localhost ([127.0.0.1]:38288 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v2OGU-0006lX-48
	for submit <at> debbugs.gnu.org; Sat, 27 Sep 2025 02:18:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59898)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1v2OGG-0006l8-V9
 for 79522 <at> debbugs.gnu.org; Sat, 27 Sep 2025 02:18:32 -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 1v2OG7-0004IH-Ic; Sat, 27 Sep 2025 02:18:15 -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=HNz8SyzkvUIAGmcXDZLjVmL2YGBgWI2CUAGW9htqmKA=; b=k0w09qZfBBe+wZsD1Zjt
 0mswiD4iW9wAPRXwdPydxHtv29oZfH0mzduMa9jzdliZhbbUC/9s4PsQt7d/HtRG0pcgmN0PvrDuy
 UTJa4KBOUzzswFh2MkCvAazcBKgcIWIJJbvBhs1O8g4dkqNGAQ2W0RK1F2vpYDYPGo0bFQQsznR+j
 GVqXm29iJuhJjbozTYVmyo1srTfkVKw23zqadEiqnDZWsNYoHAEKA9Lsk41uI8vkiyMQ7QgEXnZZC
 GDd9InD5GgfgU36rBuzEpAVvXPSqUXS35tbyyQXZZEG/tAwqTedpv/Y8dVLOQiTYRLxntKWKtSGM3
 VyiBTvhmR11P1A==;
Date: Sat, 27 Sep 2025 09:18:09 +0300
Message-Id: <86cy7ca066.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Bob Floyd" <bobfloyd@HIDDEN>
In-Reply-To: <002b01dc2f23$8faf8d80$af0ea880$@comcast.net>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#79522: 30.2; Ctrl-G fails to exit from "<file> changed on disk;
 really edit the buffer?"
References: <002b01dc2f23$8faf8d80$af0ea880$@comcast.net>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 79522
Cc: 79522 <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 (---)

> Date: Fri, 26 Sep 2025 13:24:27 -0700
> From:  "Bob Floyd" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> I have observed two really bad bugs in emacs since around 29.3.

I cannot reproduce this, neither with Emacs 29.3, nor Emacs 30.2, nor
with what will become Emacs 31.  C-g does exit the prompt, and typing
"y" does not corrupt the file's contents.

> This is one of them. In the notification window:
> 
> <file> changed on disk; really edit the buffer? (y, n, r or C-h)
> 
> Ctrl-g fails to exit from the notification. “y <enter>” enters the text “y \n” but does nothing else. It is stuck.
> 
> Here’s the bad thing:
> 
> <file> now contains:
> 
> <file> changed on disk; really edit the buffer? (y, n, r or C-h)
> 
> The original contents of <file> are gone.
> 
> NEVER, NEVER have I lost a files contents because emacs wrote something else in it.

Like I said: not reproducible here.  If this is in "emacs -Q", please
show a complete recipe for reproducing the problem, starting with the
Emacs invocation.  If the problem does not happen in "emacs -Q",
please investigate which of your customizations causes this, and post
the details once you find out.

Also, please tell on what OS do you see this.

Thanks.




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

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


Received: (at submit) by debbugs.gnu.org; 26 Sep 2025 20:25:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 26 16:25:31 2025
Received: from localhost ([127.0.0.1]:36982 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v2F0V-0002LQ-23
	for submit <at> debbugs.gnu.org; Fri, 26 Sep 2025 16:25:31 -0400
Received: from lists.gnu.org ([2001:470:142::17]:37552)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bobfloyd@HIDDEN>)
 id 1v2F0P-0002E3-Uz
 for submit <at> debbugs.gnu.org; Fri, 26 Sep 2025 16:25:28 -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 <bobfloyd@HIDDEN>)
 id 1v2F0F-0007zX-2K
 for bug-gnu-emacs@HIDDEN; Fri, 26 Sep 2025 16:25:15 -0400
Received: from resqmta-h2p-567037.sys.comcast.net ([2001:558:fd02:2446::2])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bobfloyd@HIDDEN>)
 id 1v2Ezj-0008PD-H8
 for bug-gnu-emacs@HIDDEN; Fri, 26 Sep 2025 16:24:55 -0400
Received: from resomta-h2p-554995.sys.comcast.net ([96.102.179.207])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits)
 (Client did not present a certificate)
 by resqmta-h2p-567037.sys.comcast.net with ESMTPS
 id 27GovsttnZVrd2EzWvUqKS; Fri, 26 Sep 2025 20:24:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
 s=20190202a; t=1758918270;
 bh=AodiTKZkfxBwnDvPb5ssoQDMJrdRLeGIIjrAbsSY+XE=;
 h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version:
 Content-Type:Xfinity-Spam-Result;
 b=uZRWp2Fe6LgsswIzps0AW6bxCiYlfSLrlG0C5wjlBAbiVPdbwnxeD5zzztzLwfmv+
 yMYJwEyNz9WXY4nmNMCKqQRLPIbG/HvJaZB1hVmsfUoEXSw4FD23QJo4GhCBJYe9hM
 OxVQi/BHMe+JtDAkhq713Ibptj8RzGwxB54bRp0poCcqbRhmmaCRG1Jo7ps24P1QwA
 TbcS5x8zzt/S2To/uvsfPOy1pbJqFbY1tGd7NZBD9B2+5rwWazfUX/BkGkI8NOEq8O
 VwgJOboHiS0kbMzDuZFQ+QtNBw/xAhehE/z+DDS2ZACPm3d780C2oVP1mvuFd65Otd
 qAYcNUE6f8w2Q==
Received: from Cache ([IPv6:2601:647:4400:4726::82])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits)
 (Client did not present a certificate)
 by resomta-h2p-554995.sys.comcast.net with ESMTPSA
 id 2EzUvaXaXoJgC2EzVvP38o; Fri, 26 Sep 2025 20:24:30 +0000
From: "Bob Floyd" <bobfloyd@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 30.2; Ctrl-G fails to exit from "<file> changed on disk;
 really edit the buffer?"
Date: Fri, 26 Sep 2025 13:24:27 -0700
Message-ID: <002b01dc2f23$8faf8d80$af0ea880$@comcast.net>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_002C_01DC2EE8.E351C6F0"
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
Thread-Index: AdwvIuEgYaa9d7gzT+aviD1KBbBJPQ==
X-CMAE-Envelope: MS4xfAugjV/BeiSezgT2nv2LRln63clj4flYsFPOkBlarF19rpF6dlt2bAYPOD3CUL1z927YqLD2EuydZcGjJVMFWt5/bpcl7vz86zS3YG4IbWz6FmireZLo
 QSC1qs76Tku8G1JgkibnlB17Zt01ZE26KcWhxSqw1T3bG61zydwHPzbT3C59qq3cnLvFV5TaIWzIuuECDXeft5C2QpvwvBB5OT8=
Received-SPF: pass client-ip=2001:558:fd02:2446::2;
 envelope-from=bobfloyd@HIDDEN; helo=resqmta-h2p-567037.sys.comcast.net
X-Spam_score_int: -16
X-Spam_score: -1.7
X-Spam_bar: -
X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1,
 DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
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: -0.0 (/)

This is a multipart message in MIME format.

------=_NextPart_000_002C_01DC2EE8.E351C6F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I have observed two really bad bugs in emacs since around 29.3.

 

This is one of them. In the notification window:

 

<file> changed on disk; really edit the buffer? (y, n, r or C-h)

 

Ctrl-g fails to exit from the notification. "y <enter>" enters the text "y
\n" but does nothing else. It is stuck.

 

Here's the bad thing:

 

<file> now contains:

<file> changed on disk; really edit the buffer? (y, n, r or C-h)

 

The original contents of <file> are gone.

 

NEVER, NEVER have I lost a files contents because emacs wrote something else
in it.


------=_NextPart_000_002C_01DC2EE8.E351C6F0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 15 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:12.0pt;
	font-family:"Calibri",sans-serif;
	mso-ligatures:standardcontextual;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt'>I have observed two really bad bugs in emacs =
since around 29.3.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt'>This is one of them. =
In the notification window:<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt'>&lt;file&gt; changed =
on disk; really edit the buffer? (y, n, r or =
C-h)<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt'>Ctrl-g fails to exit =
from the notification. &#8220;y &lt;enter&gt;&#8221; enters the text =
&#8220;y \n&#8221; but does nothing else. It is =
stuck.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt'>Here&#8217;s the bad =
thing:<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt'>&lt;file&gt; now =
contains:<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt'>&lt;file&gt; changed on disk; really edit the =
buffer? (y, n, r or C-h)<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt'>The original contents =
of &lt;file&gt; are gone.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt'>NEVER, NEVER have I =
lost a files contents because emacs wrote something else in =
it.<o:p></o:p></span></p></div></body></html>
------=_NextPart_000_002C_01DC2EE8.E351C6F0--





Acknowledgement sent to "Bob Floyd" <bobfloyd@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#79522; 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: Sat, 18 Oct 2025 08:15:02 UTC

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