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#58608: 29.0.50; Nasty bug with pasting primary selection in term buffers Date: Thu, 16 Mar 2023 09:17:39 +0200 Message-ID: <83cz59qi5o.fsf@gnu.org> References: <4b9aa5bac2d1bfe5af7c246ae9648c87@webmail.orcon.net.nz> <62d5bb83a2bd9e5464d198c4ad38ec77@webmail.orcon.net.nz> <83ilkgysxo.fsf@gnu.org> <2e5596b526f1cf77da9e162dc2cb8566@webmail.orcon.net.nz> <835ygfys2k.fsf@gnu.org> <628154950d12e3e6c6989ae14f843bbb@webmail.orcon.net.nz> <6a98841477c47774d2e2c5621a000b42@webmail.orcon.net.nz> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11357"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58608@debbugs.gnu.org, rms@gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 16 08:21: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 1pchvC-0002fl-CA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Mar 2023 08:21:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pchtG-0005Ww-4x; Thu, 16 Mar 2023 03:19:10 -0400 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 1pcht9-0005VL-Uq for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2023 03:19:05 -0400 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 1pcht9-0006Iw-1T for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2023 03:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcht8-0001iT-FQ for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2023 03:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Mar 2023 07:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58608 X-GNU-PR-Package: emacs Original-Received: via spool by 58608-submit@debbugs.gnu.org id=B58608.16789510896527 (code B ref 58608); Thu, 16 Mar 2023 07:19:02 +0000 Original-Received: (at 58608) by debbugs.gnu.org; 16 Mar 2023 07:18:09 +0000 Original-Received: from localhost ([127.0.0.1]:41093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pchsH-0001hD-7S for submit@debbugs.gnu.org; Thu, 16 Mar 2023 03:18:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pchsF-0001h0-G1 for 58608@debbugs.gnu.org; Thu, 16 Mar 2023 03:18:07 -0400 Original-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 1pchs9-00067Y-J8; Thu, 16 Mar 2023 03:18:01 -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=cpK1dFtAf7iFxR2IQGTmznWRz/Wws25i6oz6hCqWUWY=; b=H2Hs6Amc7uZp AThPZ8nBXPz1FwZd8PtjbOyvHSYxdtX3mw3HXL+x7N561KMlXJt7xmZrbwU+v2dMfNz0dbZHaHZDo USmggIp4GGOV5NYQnaMLy209fjUjllSoOW4O5fonGUURwXuIx/XUhJFEqm2f7tUZFh3q8xD9OZm7o 8rCJEgXdyOU8gOiFKiBvVaRT156O2lKhCjY3ZwsKXn1BbRXi8F0v9sBlL3NF3+ijJo3HBGJTsq/sX RpNIj3JgcopESMZQ6FoshTxbNeNeJdpIF++FKlkBnDeMgT/fv7tKPC3E004Rf4Y9eqDMzwKHERIlC TuBtER5psSiI1sGmjW8Cjg==; Original-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 1pchrq-0007WC-AB; Thu, 16 Mar 2023 03:17:44 -0400 In-Reply-To: <6a98841477c47774d2e2c5621a000b42@webmail.orcon.net.nz> (message from Phil Sainty on Wed, 15 Mar 2023 03:28:25 +1300) 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:258008 Archived-At: > Date: Wed, 15 Mar 2023 03:28:25 +1300 > From: Phil Sainty > Cc: 58608@debbugs.gnu.org, "Richard M. Stallman" > > On 2023-03-15 01:46, Phil Sainty wrote: > > when the command was pasting from the kill ring the > > (setq this-command 'yank) call would have made sense > > On second thought, I'm not sure it made any sense then either -- that > "paste" was still sending the text to the inferior process rather than > inserting it into the buffer, and it's entirely up to the process as > to whether anything at all gets inserted into the buffer as a result, > so I don't think of that as a `yank' as far as Emacs is concerned. > > (I'd still hazard a guess that (setq this-command 'yank) was added on > account of dealing with the kill ring, but perhaps it was just a mistake > all along.) Thanks for all the forensics. I think we should install on emacs-29 a change that binds select-active-regions to nil around the call to term-send-raw-string, and install on master a change that removes the setting of this-command.