From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Gerd =?UTF-8?Q?M=C3=B6llmann?= <gerd.moellmann@gmail.com>
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 04:40:03 +0100
Message-ID: <m2msgwfg8c.fsf@gmail.com>
References: <f60142c9c903bf4e29776c6ede21f7d0@finder.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="29670"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cc: Eli Zaretskii <eliz@gnu.org>, Filipp Gunbin <fgunbin@fastmail.fm>,
 74833@debbugs.gnu.org, shipmints@gmail.com
To: Jared Finder <jared@finder.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 04:42:22 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1tN1zx-0007YP-O3
	for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 04:42:21 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1tN1zf-00055W-9N; Sun, 15 Dec 2024 22:42:03 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1tN1ze-00055N-7s
 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 22:42:02 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1tN1zd-0004s2-Vi
 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 22:42:02 -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=uhYXJUNyUtcTpCw7jB5svOvjoTWhRNnCwhEX/BEohHA=; 
 b=WbCmLZmaSoxoYyJL4+Z6dxNBbs3moOd1Vq2zAq8xnCwK3ciOgjs5lqfX4UtCjIOh9w3Ssnx/tIb/GY19lUctr0p27QAKIiUwK87vOVfz49zTvI2MuvzjTSPtMMBl4ZJKgwoY/pzdzVqqOKf4R959vQ5OO9AvF+lJPAyRjCcIAqf7vqbie5UWVje5latu1Vjzw6dbQ2w9Yy03U3jCFCU92zlhm4l4J0uxm0gWSx53BCqlcZOPUzhPZxhBEcJB6Wnz5q0WipMeWmCcb1Dtze1tQhAUclBe9gUilznC2gvvKY4Dco5/LBhUxnQ/Ccpj2RukwUGqEgwBPTL6r2zdK1ndUQ==;
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tN1zd-0005WN-Ka
 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 22:42:01 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= <gerd.moellmann@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Mon, 16 Dec 2024 03:42:01 +0000
Resent-Message-ID: <handler.74833.B74833.173432047421145@debbugs.gnu.org>
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.173432047421145
 (code B ref 74833); Mon, 16 Dec 2024 03:42:01 +0000
Original-Received: (at 74833) by debbugs.gnu.org; 16 Dec 2024 03:41:14 +0000
Original-Received: from localhost ([127.0.0.1]:52976 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tN1ys-0005Uy-Bz
 for submit@debbugs.gnu.org; Sun, 15 Dec 2024 22:41:14 -0500
Original-Received: from mail-ed1-f45.google.com ([209.85.208.45]:61756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@gmail.com>) id 1tN1yq-0005Ui-JF
 for 74833@debbugs.gnu.org; Sun, 15 Dec 2024 22:41:13 -0500
Original-Received: by mail-ed1-f45.google.com with SMTP id
 4fb4d7f45d1cf-5d3d0205bd5so5067384a12.3
 for <74833@debbugs.gnu.org>; Sun, 15 Dec 2024 19:41:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1734320406; x=1734925206; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=uhYXJUNyUtcTpCw7jB5svOvjoTWhRNnCwhEX/BEohHA=;
 b=ftzB5wqQmN3HZl8t1cke/svd8r/0xzE9CvQDuju3IFLttOLMnYvFx16XplWl8gyIgM
 CEBFJbCMX1WqN3vcZ+DKX5Kv+ZKHCPHiTDH9Q6tJ7YZJK3VrW1ykNH1vDMjkQ6Iq98BI
 o9Uqntdy36NyyHAAhgO1k7mo2RFyFQQV65MjxdbldXEv18Z63H3AsCiUz6CRNJBBnla2
 K4YexP0si05zDhIBSI8aNvC9BGcnQfCMZ6irhWz+opjSSe9UpKwny7IwgS3Fd7MIT/Kh
 I2fMJnrf7xKW/IsehyPGWtZcwFN3XQsHR5GIQsTpRe2cvOpR9udflMRn1lZJYSzYEnCu
 e4FQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1734320406; x=1734925206;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=uhYXJUNyUtcTpCw7jB5svOvjoTWhRNnCwhEX/BEohHA=;
 b=HLVUJrvV063jZEeeipI5sdd1xneM6Al4SSUpSb6NW38+y7S3XRBVXxh0wivU8ckkx1
 SSPlRUjOAvar7njyg7p0jthGKXP9KtbeNb0wFGBQBlr2mZFyQD6JlZvznkodDFP+GSlr
 Qs+gggKVKTyMF02HRKlsPc48q3AbU8oCI4dO8pHeuCc7sDGunsPQdZ+stnIUgbCBdTwI
 dE59PZTBnRkcCu/LkO2F4iNLda/ydtO9lLS7MVFnEIPKo8pG8jaeKNQY5CfDsHa7BDXD
 aq996Zl0uNfBIWD8OGJePdVwA4zDr/WoBp08t7QHl9fHi+mSznDkuKXkVRH/+oTbCIRU
 AecQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCVTGUeA0riIhGG8YE00U50z/PNy4Ac8YluAdFl5LOAAA6G0WwfbjLVHAhjaMv00EoHaHg4SFw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyHkQBNqzc2y85WIPSZsfaHnlPdpsSzCkrKvedlHnSH5UaDv7mT
 MR8e5/iIk67QXmjVfz2y6X1HoAWbd7FS2m6h6SYV3XjQbOp2oSjI
X-Gm-Gg: ASbGnctVBq1gG78Ck54/ZHJeeCvjRZwtlO1tifiuBxOUcvtMuZCJ1AQ1xg3SB8oSYc2
 qcET6VLlzaCsrhShc6Rq6DPyM0ONR1wfPDS0+fZlErCLg0Q9Z5uu+r/J7yR2dkwj2o4vcJmU1Gv
 cezTXvSKxZNqXKbw7w9s+uLRIKaaZAm6VoAnneDF/YPMn2ns8BcuOKsd7WQtmhuS5E9g8cujY7L
 OwW/d5OhKbfKEnFCcXgqJ2qXpuJR85COSoTh1j4mbpHFFM4F/m7k5WRl7w0IP0XT1juCjB7qiKK
 50puEVtXR9S+duhXuy1m6bhtcp0xl5XdTG7y4v4wtzMU1lpLytSoHGLtRqTBl9eb
X-Google-Smtp-Source: AGHT+IFiYZpr/huL7vlDml0XwVNfeO/0koxh+yBmwnvtLVc4YSXmaIqMJff30Yo0UJGa3R1SI9y+Ww==
X-Received: by 2002:a17:906:3112:b0:aa6:82ea:69d6 with SMTP id
 a640c23a62f3a-aab77907a5fmr1031005966b.18.1734320406378; 
 Sun, 15 Dec 2024 19:40:06 -0800 (PST)
Original-Received: from pro2 (p200300e0b72b6c00b173035138bbc769.dip0.t-ipconnect.de.
 [2003:e0:b72b:6c00:b173:351:38bb:c769])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-aab9606893esm276425466b.71.2024.12.15.19.40.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 15 Dec 2024 19:40:05 -0800 (PST)
In-Reply-To: <f60142c9c903bf4e29776c6ede21f7d0@finder.org> (Jared Finder's
 message of "Sun, 15 Dec 2024 17:41:01 -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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=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:297153
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/297153>

Jared Finder <jared@finder.org> 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.