From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#61535: 29.0.60; choose-completion erases in-region buffer Date: Thu, 16 Feb 2023 19:51:05 +0200 Organization: LINKOV.NET Message-ID: <86edqpebxy.fsf@mail.linkov.net> References: <86y1oylrap.fsf@mail.linkov.net> <83ilg2afip.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30067"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 61535@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 16 18:52:10 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 1pSiQU-0007dl-3A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Feb 2023 18:52:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSiQO-0000Kd-CL; Thu, 16 Feb 2023 12:52:04 -0500 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 1pSiQN-0000KR-0V for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2023 12:52:03 -0500 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 1pSiQM-0000PJ-Nf for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2023 12:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSiQM-0002Y1-6B for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2023 12:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Feb 2023 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61535 X-GNU-PR-Package: emacs Original-Received: via spool by 61535-submit@debbugs.gnu.org id=B61535.16765699129778 (code B ref 61535); Thu, 16 Feb 2023 17:52:02 +0000 Original-Received: (at 61535) by debbugs.gnu.org; 16 Feb 2023 17:51:52 +0000 Original-Received: from localhost ([127.0.0.1]:37619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSiQC-0002Xe-LO for submit@debbugs.gnu.org; Thu, 16 Feb 2023 12:51:52 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:36733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSiQB-0002XR-T0 for 61535@debbugs.gnu.org; Thu, 16 Feb 2023 12:51:52 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 3B1D71C0003; Thu, 16 Feb 2023 17:51:44 +0000 (UTC) In-Reply-To: <83ilg2afip.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Feb 2023 21:35:10 +0200") 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:255829 Archived-At: >> 1. type: (with-c C-M-i >> 2. type: M-down ... M-RET >> 3. check that the whole buffer was deleted before a selected >> completion candidate was inserted to the buffer: >> C-h v buffer-undo-list RET > > Which buffer was deleted? *scratch*? It isn't here. > > And what does "C-h v buffer-undo-list RET" mean? > > Bottom line: I don't understand what is the bug here and/or how to > reproduce it. The contents of the *scratch* buffer is erased and replaced with the same text. This fact can be confirmed by looking at the value of 'buffer-undo-list' that contains the text of the whole buffer as a string. Especially this is noticeable when using in-region completion in a large buffer. With the patch, only the completed string is inserted.