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:30:53 +0200 Message-ID: <86v7vjpp36.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9758"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fgunbin@fastmail.fm, 74833@debbugs.gnu.org, jared@finder.org, shipmints@gmail.com To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 17:32:50 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 1tNE1Z-0002Kw-Aw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 17:32:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNE0r-0003k3-Il; Mon, 16 Dec 2024 11:32: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 1tNE0p-0003ju-UC for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:32: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 1tNE0p-0001KQ-K8 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:32: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=142n+h/PIc9Yy871fu8QZxnMmNgdanOiTp6TWZA0gPc=; b=IVYAY8ZZmKAA+FbpV5RtTEXpnMJuoTNQOW1sjWqOb88V59Rq4NvHkMbj+78dWiw0vZMuHK61IPDnwptZdQEH4H8ZVv0nJH/BF6MyZ3QgenbLk8y7ljoz2jfHYj+hyr6R3ZINwLtceGcmBS9lkWoZildSEFBaj0E9zivtLVILc5Z4jpQyClaVYyh8vUtMgszH5OF1hSKnPHVMqE4S+jQeUz3NA+pPfMAlCMxiw5F31Iyv8pvPuDIbDclrIw+fwD3S99LPOM2fYprSpf03yBYhG9aWaAsZ9Z3uq62fsRMZjcnDvLzqcqjw+Pkm0A4w7CFHLVjRKo+vpjSFxCHHHF3/tA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNE0o-00034h-EV for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:32: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:32: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.173436667011728 (code B ref 74833); Mon, 16 Dec 2024 16:32:02 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 16 Dec 2024 16:31:10 +0000 Original-Received: from localhost ([127.0.0.1]:55726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDzx-000336-QU for submit@debbugs.gnu.org; Mon, 16 Dec 2024 11:31:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDzv-00032p-K3 for 74833@debbugs.gnu.org; Mon, 16 Dec 2024 11:31:08 -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 1tNDzp-0001Ej-PG; Mon, 16 Dec 2024 11:31:01 -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=142n+h/PIc9Yy871fu8QZxnMmNgdanOiTp6TWZA0gPc=; b=EeYCRAxLY6lONvgIOATk q7aIQHiiihCMYkd9m7ly4s2uo0iQCsA5S1pgwfMGaBQQAoLH6QQyuDKJ+/dTFKvgm3dE9dbtaN+a9 RxexRQSmeXVj5VLLM0OGXD41Txl08I1edyoHdwb2JotsBrUNTS76RkIlbFtTk5d/ZDj4bq3kuYhIa R+PfwZyKMRU9XWDpDsa4Ab3wtLM3txzotq8w/+Z5zlyUVbhEqnxf5JzwacxDES0wdR/UIoeMhPtCr YQzAnnxH4GT4LNU9jBRY+DraTcUEGKMEXYLhBRKSsK09F0jhw2SUdokSxVH4gHEKLhrANPBUFiaLR tP1GiHf0n61xDg==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Mon, 16 Dec 2024 04:40:03 +0100) 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:297184 Archived-At: > From: Gerd Möllmann > Cc: Eli Zaretskii , Filipp Gunbin , > 74833@debbugs.gnu.org, shipmints@gmail.com > Date: Mon, 16 Dec 2024 04:40:03 +0100 > > 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. > ;; More specifically, it can use the following tools: > ;; - Under X11: `xclip' or `xsel' (https://xclip.sourceforge.net and > ;; https://www.vergenet.net/~conrad/software/xsel/ respectively). > ;; - MacOS: `pbpaste/pbcopy' > ;; - Cygwin: `getclip/putclip' > ;; - Under Wayland: `wl-clipboard' (https://github.com/bugaevc/wl-clipboard) > ;; - Termux: `termux-clipboard-get/set' > ;; - Emacs: It can also use Emacs's built-in GUI support to talk to the GUI. > ;; This requires an Emacs built with GUI support. > ;; It uses `make-frame-on-display' which has been tested to work under X11, > ;; but it's not known whether it works under MacOS or Windows. It is not needed on Windows (at least the latest versions of it).