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 23:32:39 +0300 Message-ID: References: <8634iszpa5.fsf@gnu.org> <86y10ky9wf.fsf@gnu.org> <86wmg4xd2u.fsf@gnu.org> <86y10jwmsb.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="33864"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74833@debbugs.gnu.org, shipmints@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 13 21:34:43 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 1tMCMz-0008bO-UY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Dec 2024 21:34:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMCMP-00050H-KT; Fri, 13 Dec 2024 15:34:05 -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 1tMCMO-0004zh-1o for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 15:34:04 -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 1tMCMN-0003Vc-Fw for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 15:34:03 -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=R3m/uTC8ZpwxapgMt0baLoQHYBBKpPs+oWVDfwxXgIE=; b=XhJJ4z3qiAHz8N/kbJypTcwtcXo0u3z/TXSnHxNYonLCPmIzn2R8n618Piw5jEtFJoZyv9tQz2C5SDrh6KjNc71C4hiill/N37yvxQ5RTXzpJH4rDF5+MpvFKwiKxcunvlKK8gvSOr/dLFz0qPUgiFheR9Z9IqTvarSj20PGyZ0XmvQsxYdgKMjzKtQCK+K6lDDsdd4zPMjbBIWnOtscYo1/PryMiX18sC1CalAqAjrzVYssPJttB/Ofa7Vzz7KVHWe6LwrYclq4THC+yblIkYuUmJmAkkLXht6a2SUo4Dyaz46eMxDkPyufksnOwW73B3Hjgg9GBiUIlynlDZAsyQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMCMM-0002Qk-ME for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 15:34: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 20:34: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.17341219859244 (code B ref 74833); Fri, 13 Dec 2024 20:34:02 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 13 Dec 2024 20:33:05 +0000 Original-Received: from localhost ([127.0.0.1]:44266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMCLN-0002OY-0G for submit@debbugs.gnu.org; Fri, 13 Dec 2024 15:33:05 -0500 Original-Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]:60365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMCLF-0002O1-FD for 74833@debbugs.gnu.org; Fri, 13 Dec 2024 15:32:57 -0500 Original-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 6693511400F8; Fri, 13 Dec 2024 15:32:48 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Fri, 13 Dec 2024 15:32:48 -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=1734121968; x=1734208368; bh=R3m/uTC8Zp wxapgMt0baLoQHYBBKpPs+oWVDfwxXgIE=; b=jrKLWnGq+NLZmhE6jSFqHnBBtJ e+DTZQJW8FTCFe5KUnRLHnHlfQS4f47IX5t8ISM5qP20PFcOJ9bjnH0672J2hS3V lMYm6rfIjz5N0JbCJDGaZdrPvkqEVKiXkHUkEKbRTZWET8fGu0xzWecZXkqariE4 7JIRKOiPRfqmrslYREz/CDGmBtf8LphprnyPAnn0Ko17S55/UUk7RoGx2IHdQ6HM dSgpaRsi64yQ6OU+cyDRugy1yL3WlWtUjCLYfDr9OeHEqf1TYeTvDKkhBW2YcvAf SYBBviBVHTt8wNArWLSgTVlMatuRqP75FRgvv5pb7hvkYvHVslbRTyfa17pQ== 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= 1734121968; x=1734208368; bh=R3m/uTC8ZpwxapgMt0baLoQHYBBKpPs+oWV DfwxXgIE=; b=4+Ctnb8cuOXT3qDaK+9dNhzCvKx3Oo9SwbZtj7a07HA5Y6yzbVf +tKG+ZzMEyagy1iePmrBnGmmRxuKY76kKE7WvrBL/kmIBVaGuxJzjknZVov/qQNb B4hEKH0EUOiGmTNUfv1UWLo39ql4r63zMGhlXje/pcAWn5z55Dldue/StzOJ6SWu Gc9kkecsPExPZCDzohi26cIB94T0cJyW0YHBAw6K+njoXMOFAwLUq0q14IkAyXdW pFohZnJtVEzUKIuByJIjci3iqaRTvAyvsTnGvmtNpIteZ8nWQlYJ+ka+yZh6+9vV cnaUlDsBR5CD1vWWWqfKiK/kM5rIh6kxHig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeejgddufeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhephfhilhhiphhpucfiuhhnsghinhcuoehfghhunhgsihhnsehfrghsthhmrg hilhdrfhhmqeenucggtffrrghtthgvrhhnpeffhfejveeiieeiudetgfehffelieevfeef fedtkeelheeludefueeuudehveeiffenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehfghhunhgsihhnsehfrghsthhmrghilhdrfhhmpdhnsggp rhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeejgeekfeefse guvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepshhhihhpmhhinhhtshesghhm rghilhdrtghomhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Dec 2024 15:32:46 -0500 (EST) In-Reply-To: <86y10jwmsb.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Dec 2024 18:49:40 +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:296991 Archived-At: On 13/12/2024 18:49 +0200, Eli Zaretskii wrote: >> From: Filipp Gunbin >> Cc: Ship Mints , 74833@debbugs.gnu.org >> Date: Fri, 13 Dec 2024 19:35:15 +0300 >> >> On 13/12/2024 09:21 +0200, Eli Zaretskii wrote: >> >> > 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. > > xterm-mouse-mode is supposed to be enabled only on terminals that load > xterm.el, which means they are xterm-compatible. Does Terminal.app > load xterm.el on startup? Terminal.app sets TERM=xterm-256color (this is configurable in "Settings -> Profiles -> Advanced -> Declare terminal as", I doubt I ever changed it), so xterm.el should be loaded, yes. Other term-related vars are: TERM_PROGRAM=Apple_Terminal TERM_PROGRAM_VERSION=453 TERM_SESSION_ID=1251C872-8246-4380-A2AE-ED1F8B649878