From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45029: 27.1.50; Regression: Yanking into externally modified file with delete-selection-mode Date: Sat, 05 Dec 2020 13:31:45 +0200 Message-ID: <83a6uscwv2.fsf@gnu.org> References: <581f7e67-db12-ba3a-2354-de8061789861@matholka.se> <87360lnabu.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: lars@matholka.se, 45029@debbugs.gnu.org To: Lars Ingebrigtsen , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 12:33:21 2020 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 1klVoW-0003xX-Cp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 12:33:20 +0100 Original-Received: from localhost ([::1]:44986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klVoV-0001PO-9P for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 06:33:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klVoH-0001PF-7L for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 06:33:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klVoE-0006ak-1q for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 06:33:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klVoD-0002gE-V6 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 06:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2020 11:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 45029-submit@debbugs.gnu.org id=B45029.160716793610248 (code B ref 45029); Sat, 05 Dec 2020 11:33:01 +0000 Original-Received: (at 45029) by debbugs.gnu.org; 5 Dec 2020 11:32:16 +0000 Original-Received: from localhost ([127.0.0.1]:46649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klVnU-0002fE-7n for submit@debbugs.gnu.org; Sat, 05 Dec 2020 06:32:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klVnS-0002ez-E7 for 45029@debbugs.gnu.org; Sat, 05 Dec 2020 06:32:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44237) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klVnG-0006MM-Be; Sat, 05 Dec 2020 06:32:03 -0500 Original-Received: from [176.228.60.248] (port=2472 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1klVnF-0003gl-0B; Sat, 05 Dec 2020 06:32:01 -0500 In-Reply-To: <87360lnabu.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 04 Dec 2020 11:18:29 +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" Xref: news.gmane.io gmane.emacs.bugs:195025 Archived-At: > From: Lars Ingebrigtsen > Date: Fri, 04 Dec 2020 11:18:29 +0100 > Cc: 45029@debbugs.gnu.org > > Lars Ljung writes: > > > I get an error when I do this, and the content of the buffer is > > completely replaced by a single "y". > > > > 1. Start with "emacs -Q" > > 2. M-x delete-selection-mode > > 3. Open some text file (fundamental mode) > > 4. Modify the file externally > > 5. While a selection is active, yank some text > > 6. Answer yes to the question " changed on disk..." > > > > The content of the buffer is now completely replaced by a single "y". > > The message "No catch for tag: exit, nil" is shown in the minibuffer. > > I can confirm that this bug is still present in Emacs 28. > > The backtrace is included below, if that helps anybody. > > Debugger entered--Lisp error: (no-catch exit nil) > throw(exit nil) > exit-minibuffer() > read-char-from-minibuffer-insert-char() > funcall-interactively(read-char-from-minibuffer-insert-char) > call-interactively(read-char-from-minibuffer-insert-char nil nil) > command-execute(read-char-from-minibuffer-insert-char) I'm guessing this is some unintended consequence of replacing read-char-choice in userlock.el with read-char-from-minibuffer. Juri, could you please look into this regression in Emacs 27? I'd like to try to fix this for 27.2. Thanks.