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: Wed, 19 Oct 2022 14:05:39 +0300 Message-ID: <83ilkgysxo.fsf@gnu.org> References: <4b9aa5bac2d1bfe5af7c246ae9648c87@webmail.orcon.net.nz> <62d5bb83a2bd9e5464d198c4ad38ec77@webmail.orcon.net.nz> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27240"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58608@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 13:07:01 2022 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 1ol6ub-0006pT-8E for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 13:07:01 +0200 Original-Received: from localhost ([::1]:38676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol6uZ-0006p2-VO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 07:07:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol6tf-0006nQ-C8 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol6te-0000VI-NI for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:06:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ol6te-0007B0-HG for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:06: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: Wed, 19 Oct 2022 11:06: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.166617756027574 (code B ref 58608); Wed, 19 Oct 2022 11:06:02 +0000 Original-Received: (at 58608) by debbugs.gnu.org; 19 Oct 2022 11:06:00 +0000 Original-Received: from localhost ([127.0.0.1]:55962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol6tb-0007Ag-Kf for submit@debbugs.gnu.org; Wed, 19 Oct 2022 07:05:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol6tZ-0007AU-Rw for 58608@debbugs.gnu.org; Wed, 19 Oct 2022 07:05:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60364) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol6tU-0000T8-JL; Wed, 19 Oct 2022 07:05:52 -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=cZ8EwtJ43aM224bL/7UlU5w+tytvmwfbKlR/0tmsF9c=; b=ruywPv2M51JL eO8YXgyhJAyOVBI/3ZbIvoB+RIQ99BAt8OOfcjymea6/DZeWkfLLUpl6Ln8+2/syu1nUCTXVZ3D1e Zz2+Ds69naU6MCe8pXpxqErxmOMen4bgqHulSFuJ7S2KfTHTJopM2w9WPJS1gkV+ZIeWS6dPrM4uX /qokrpmHlgGxcE+EAtllxX7vf+NEOyZIkCjuAW7V15P2OVhFC8vFATUaCmOuCunDMYYHWf01PJXpP InGsZLZccE8CaD/vxOeoWruiEhRLqUmf8P2oWhEULeF1sbDoFoJ5c82we6stn6i/ARHD1B942Iv4n 6ObWdm+bf4orxFJWU4jLBQ==; Original-Received: from [87.69.77.57] (port=1402 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 1ol6tN-0001z9-6M; Wed, 19 Oct 2022 07:05:50 -0400 In-Reply-To: <62d5bb83a2bd9e5464d198c4ad38ec77@webmail.orcon.net.nz> (message from Phil Sainty on Wed, 19 Oct 2022 14:19:20 +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" Xref: news.gmane.io gmane.emacs.bugs:245855 Archived-At: > Date: Wed, 19 Oct 2022 14:19:20 +1300 > From: Phil Sainty > > Looking at the docstring for `deactivate-mark' told me about > `select-active-regions'. I don't know whether this is the correct > solution, but I can confirm that this change to `term-mouse-paste' > appears (after only cursory testing) to fix the bug: > > - (term-send-raw-string (gui-get-primary-selection))) > + (let ((select-active-regions nil)) > + (term-send-raw-string (gui-get-primary-selection)))) I think it could be important to understand why select-active-regions causes this problem in your case.