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#74833: 31.0.50; Copy to OS clipboard doesn't work in macOS Terminal.app with xterm-mouse-mode enabled Date: Mon, 16 Dec 2024 18:37:33 +0200 Message-ID: <86ttb3pos2.fsf@gnu.org> References: <535228fe493971e918ee22faeb58c433@finder.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35140"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 74833@debbugs.gnu.org, fgunbin@fastmail.fm, shipmints@gmail.com To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 17:38:35 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 1tNE78-0008x9-Sg for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 17:38:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNE6j-0005rg-DX; Mon, 16 Dec 2024 11:38:09 -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 1tNE6e-0005rI-2e for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:38: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 1tNE6c-00022K-SI for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:38: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:References:In-Reply-To:From:Date:To:Subject; bh=AIa7mk41eNe+cQSirEQ9/qgHjqf+ILNtR9GggRc3gAc=; b=MiiuBnIxf3XhScm6hIvup/fGzZUQ8GJ95znzqKbI3eVEv4cIfjr9fnZ1xxLRf5uROGNIvQ+Rj+9Y+/O6K+rDWLXC4yJJcG3dzE+OT0s3XAvX+GcN+M8WhIA2XaIsZ6+0r58PxpRv8fF6pYAOUGLdpoQ0bNzk5cs2sr8VcVkwZgOnQmW53c3wB7YuUUqJapjh0Ggrtmc93QlhwSdFb1W+/YbEcvMuC3/EPapUQq5TOH5MN294uRY4AdhDNoZulyOyrnTtLB8B4mdIREizI4hGIJX/NjR9I+pu6n0g2ERaMdlwOdUqf2Xk23DZsZneUjnnXaKC2oVzFJh1FhVU8Pjcgw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNE6c-0003Mc-Br for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 16:38: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.173436706712902 (code B ref 74833); Mon, 16 Dec 2024 16:38:02 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 16 Dec 2024 16:37:47 +0000 Original-Received: from localhost ([127.0.0.1]:55740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNE6M-0003M2-Cx for submit@debbugs.gnu.org; Mon, 16 Dec 2024 11:37:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNE6J-0003Lk-JU for 74833@debbugs.gnu.org; Mon, 16 Dec 2024 11:37:44 -0500 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 1tNE6D-00020f-DX; Mon, 16 Dec 2024 11:37:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=AIa7mk41eNe+cQSirEQ9/qgHjqf+ILNtR9GggRc3gAc=; b=PhtpFZqqio4DBP9TLFyA LKZffkXo972LPOmYlchuU22F6iirHY7UdwHWDXmQlImFVeSHiMB3Mo3J19t7O7FlPvalxsd0YWzri f69TUjShKfHaXMIG0WD6Jix6K4svjyw9dDtVYRkKiY1x/bOe3SObBvqE/TbfmRfvGbCXLdF7rnCu5 HJ1f3AzwIzm0+yuusDX5TbDtnmFNbpvrEiAI3hgUSRSyjN1/DBtG5vacpOUCB5AJtdvlBqGfFhkLh fujOQj5YEvWmf+ZdeIiQzlyISNvq3p5gfxVLUiYvy27Twqm+S52VSxPxsDmMhcYHfye604vS2ZN43 /jLEJNQ4PVvvAA==; In-Reply-To: <535228fe493971e918ee22faeb58c433@finder.org> (message from Jared Finder on Sun, 15 Dec 2024 21:16:16 -0800) 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:297186 Archived-At: > Date: Sun, 15 Dec 2024 21:16:16 -0800 > From: Jared Finder > Cc: Eli Zaretskii , Filipp Gunbin , > 74833@debbugs.gnu.org, shipmints@gmail.com > > On 2024-12-15 19:40, Gerd Möllmann wrote: > > Jared Finder writes: > > > >> What about adding a workaround that uses the command line tool pbcopy > >> (Mac version of xclip)? The pbcopy program is distributed with MacOS > >> by default. > > > > The Elpa package xclip uses that. > > > > ;; This package allows Emacs to copy to and paste from the GUI > > clipboard > > ;; when running in text terminal. > > ;; > > ;; It can use external command-line tools for that, which you may > > need > > ;; to install in order for the package to work. > > Thanks. I just tested xclip-mode from Elpa and it indeed works to get > copy operations work with Terminal.app. I think the best path forward > would be to just mention this package in the NEWS update as a workaround > for folks using Terminal.app. We could also recommend using iTerm2 as a > GPL'd alternative that properly supports copy. (Paste works fine because > Terminal.app supports xterm bracketed pastes.) > > Eli, does this sound good to you? It does (I think it should also be in PROBLEMS), but I wonder whether we should disable xterm-mouse on Terminal.app (assuming we can detect it). It sounds like more people could bump into this tricky issue, and relying on all of them read NEWS is too optimistic. What are the downsides of turning this off for Terminal.app? That's what Emacs before 31 had, so it cannot be too bad.