From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#74833: 31.0.50; Copy to OS clipboard doesn't work in macOS Terminal.app with xterm-mouse-mode enabled Date: Fri, 13 Dec 2024 19:35:15 +0300 Message-ID: References: <8634iszpa5.fsf@gnu.org> <86y10ky9wf.fsf@gnu.org> <86wmg4xd2u.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="32170"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74833@debbugs.gnu.org, Ship Mints To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 13 17:36:33 2024 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 1tM8eV-00088t-Ha for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Dec 2024 17:36:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM8eK-00058T-Ue; Fri, 13 Dec 2024 11:36:20 -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 1tM8e5-00054C-7D for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 11:36:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tM8e2-0004IF-PK for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 11:36:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=+Dqik4OKSmcWZoY2ZKVTNHG0hSlzwQMb3XAqQUp4Vv0=; b=MOS1Ktja0pSlpvnImFOicEzY9H/U2i3DUO75gFcfcKmu8JqVkiXa5QYxtqq4bG9IJo7+7z1ttL7z9EYVrf6lgMKxmwyPgmkfNUQVDqp8buaZTLSAjrMxHgOhic9CLqQgz+N0DtkaYVSzc5iUQgx8AwKuEKF7iX8gTZPstiio6OzDqDE5tQHf9RyBq5t6SWih15tySHptQBInFQw1csx6sHzpR2AdmVYzV6e+iX/szy6/fJj7zIpQQ9yaBEvdLCKmrMeTOMJoedRkIOfB2cC+h0BkEMsjUboMpn2HhRNRD7Y09ah7y4OsgoyaMR6TqkX1j78zd2D/pRPq/t1zpYh86Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tM8e2-0007h1-4g for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 11:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Dec 2024 16:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74833 X-GNU-PR-Package: emacs Original-Received: via spool by 74833-submit@debbugs.gnu.org id=B74833.173410773129525 (code B ref 74833); Fri, 13 Dec 2024 16:36:02 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 13 Dec 2024 16:35:31 +0000 Original-Received: from localhost ([127.0.0.1]:43918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM8dV-0007g7-QE for submit@debbugs.gnu.org; Fri, 13 Dec 2024 11:35:30 -0500 Original-Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]:33433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM8dS-0007fl-5i for 74833@debbugs.gnu.org; Fri, 13 Dec 2024 11:35:27 -0500 Original-Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id D7C9C2540217; Fri, 13 Dec 2024 11:35:20 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Fri, 13 Dec 2024 11:35:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1734107720; x=1734194120; bh=+Dqik4OKSm cWZoY2ZKVTNHG0hSlzwQMb3XAqQUp4Vv0=; b=DXXCeVsPA3RxAd0Owpsq+qB8c2 BMrB/yKQs1XCBxtwteK2wlV97FVbrjXXq93Z3PNo4tRWDrGbb28Rr0O7BZu3d2b+ Ko7dF2qV40AmCkTW2Uq9ftNMomcYoABJ4SnRqc8N09YxPMQbLVqPlHQipl3B5Vd/ yXA5dX3gmRG5shba6xD3+fEcFOt3DjxoE4cCj3uuHAkoIYjRtY8U2MQRuTUFx7m/ hK8q5NNzFbJkt+XgdfeuqraYKj7uQZv0sTRE999pKzgF9Jkud2S///n9Q84MkCMF RoBro9kPA+QflfNq+r8uwomcPK/7HTiLWpM+y4nF1sY6B65ImSXrQNSK0wnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1734107720; x=1734194120; bh=+Dqik4OKSmcWZoY2ZKVTNHG0hSlzwQMb3XA qQUp4Vv0=; b=kuXZwUnwoXGGZYZSQRYY+f/rPw1+PpkwNQ1w8jCaa3ZfOgaN/Ak 1VgdjEYAGGkDRIR3kNo3T0pqF+UmyhuuzT4rHCEnuvJN1tzmwQJ1Cnj81GvosTQO kRMeGrhKP/cLD3bPO60q7s9R/YPEhIPwqtjP8pRb8KdmPPE9zxMLYT4No1S7DGEb 730QqqiVpXl4+BTE/bn3EBu58TMNph89X/8ax8kcVReGB84qXPPhTbS2b+qoWzay ck71GfnERRJPN/9w14Rl0KgnjLpQjJ+SKcEfGYyXsGhc9ObG/bpURLpQZhty8ZOv E+aQqWCAvRtarTIIEBYvWzna3hcMyaPBRCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeejgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredtnecu hfhrohhmpefhihhlihhpphcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrih hlrdhfmheqnecuggftrfgrthhtvghrnhepfffhjeevieeiiedutefgheffleeiveeffeef tdekleehledufeeuueduheevieffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepfhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmhdpnhgspghr tghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjeegkeeffeesug gvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehshhhiphhmihhnthhssehgmhgr ihhlrdgtohhmpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Dec 2024 11:35:19 -0500 (EST) In-Reply-To: <86wmg4xd2u.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Dec 2024 09:21:45 +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:296981 Archived-At: On 13/12/2024 09:21 +0200, Eli Zaretskii wrote: >> From: Ship Mints >> Date: Thu, 12 Dec 2024 15:31:00 -0500 >> Cc: fgunbin@fastmail.fm, 74833@debbugs.gnu.org >> >> I have xterm-mouse-mode enabled when in tty mode on macOS and it does work for clicking/selecting but >> this is independent of integrating the kill ring with the pasteboard. I am unaware of how to test the >> completeness of the xterm mouse protocol support, however. > > So why is this an Emacs bug? It sounds like the OP expects something > to happen which shouldn't, because the xterm protocol for selections > and the clipboard are not supported by Terminal.app? In that case, > this could be at best a feature request, not a bug. I'll try to explain differently. Without xterm-mouse-mode you can copy/paste from/into Terminal.app window, looks like Terminal.app gives this ability on its own. This is not integration with Emacs kill ring, no. Emacs cursor does not react to mouse clicks, and selection happens with OS mouse pointer. Paste works rather slow (bad idea to paste large chunks of text), but tolerable. Now, yesterday my daily master build got me xterm-mouse-mode enabled, so I did some testing just out of curiosity. Most of the things work, including clicking and selection. However, Command-C now just doesn't copy text to OS clipboard. And it's non-obvious that you should disable xterm-mouse-mode to be able to copy. That's why I filed this bug - because previous behavior was not ideal but working, and now only paste works. Maybe we should just avoid enabling xterm-mouse-mode in Terminal.app. Maybe functionality of xclip should be in core.