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?= 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:36:01 +0100 Message-ID: References: <535228fe493971e918ee22faeb58c433@finder.org> <86ttb3pos2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6093"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: fgunbin@fastmail.fm, 74833@debbugs.gnu.org, Jared Finder , shipmints@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 18:38: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 1tNF3A-0001Rb-My for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 18:38:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNF2i-0006Sa-75; Mon, 16 Dec 2024 12:38:04 -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 1tNF2g-0006Nr-Ik for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:38: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 ) id 1tNF2g-0003cN-26 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:38: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=8auVn9lduezFCD/l4L9WfmBW2X0q3bWJu2gUBQpTBEg=; b=sPD5U9gl4wgjLSs9YnrQbvurritbLyV0AXaQXzNINJEye9xeIaalBQ5bRJuDeS5pdT5oCQ2pCB9KAeOwMrUfeCI/IZ1F2rLUPHAEn2tPKaaVLTQoO/uwrjPKwYjKcbs+9Y7tY4TPzSFBAC+uYQnFFfz6FaRy/HxVt3GAafvPHb53CW+ctquPC8W2jLeiT45V7jPiY/xdT/BYUiLSTfbp7TOwSS0CUhF7yC/7X4WjuhgS0ohSVa3XgM47HV/rY7o+VVurLiOH1SSihsb/9IeNPPA53RJxczn10EKm2ABlBaOajrn4vXrl964Su6UvDCxw2q2JNt6hXUKwNxD7M3m2PA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNF2f-0006wz-RE for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 17:38:01 +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.173437062826604 (code B ref 74833); Mon, 16 Dec 2024 17:38:01 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 16 Dec 2024 17:37:08 +0000 Original-Received: from localhost ([127.0.0.1]:55939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNF1m-0006v0-G1 for submit@debbugs.gnu.org; Mon, 16 Dec 2024 12:37:07 -0500 Original-Received: from mail-ej1-f52.google.com ([209.85.218.52]:44299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNF1j-0006uh-UF for 74833@debbugs.gnu.org; Mon, 16 Dec 2024 12:37:04 -0500 Original-Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-aa6c0d1833eso763794466b.1 for <74833@debbugs.gnu.org>; Mon, 16 Dec 2024 09:37:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734370563; x=1734975363; darn=debbugs.gnu.org; h=content-transfer-encoding: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=8auVn9lduezFCD/l4L9WfmBW2X0q3bWJu2gUBQpTBEg=; b=OIH8rENkpcULKZDKTJ5RVrUJi72l5R369y6YSOP+B/gbRqBH33FTxJU0UD08z8URvm j2bgqw+Se7AAycmoG5kJlRdSxmWiJrUFUGXoNCk8Ad3JWxq4BW/nKnMmIFP5O5jDQI4N 8uMJkrJZOMlqqx0/zHSx09yjRlsyBV26DWHb+yaapqHKOjOkwLiFKf9z9FwJ5CUOu1pU GZCxz8ENRNdIKr215hPtWkwtscwU506AfKslIx/Kkw7hGbMEAWDwdP64M46DHQfsnESM GA9F3ViMZeEs9/q4OGsdGAasVI5b1uT4/ItxusO/No9p1esFx9G6U0tRSxjPm4K7VM04 5Ylg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734370563; x=1734975363; h=content-transfer-encoding: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=8auVn9lduezFCD/l4L9WfmBW2X0q3bWJu2gUBQpTBEg=; b=XDDE1XSOu5BnBJAVJdvDbmvO0OFKLQsCbQGjGcAUzwxIMFKaLFKLQAsKf6d7SOygPN gfGN9STCUBwruEQN0GGSvQ5f3KWBknyOLnLPxyLZMzUl70zpeZG7gmqt73IFP0VKeLcN 862nllpwVAoclPUI9e2epeQLIZ/VEHAusIpT9p7t1pd6Zo6rT1xW++th+bG3vniu5eT3 MZOPI8TQBaHHcXymn0THOs6i1oYF4QeRa2n8wCHfa80pgdLddt39KM4KxyGw9wDA8Mvy uiNkP/n7Yt8KErx7pgb9YkJhPi90L81WKBTusEB9zb0Ot++gdT6U5AgbXD1JrLCvUwFG q4Ng== X-Forwarded-Encrypted: i=1; AJvYcCX/ppqDZhOq6gZOYtiGYEvgRBd/hucUBLNT6+mn5mejrwXosaNPPtz4COMOk0LC8aAzIkpbLw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxGE7SS4l7YqYZvGNMi1lMyVYs4L/fvvgW9WMnJfHNfCbUVvo4n SeCJjc0VWQpGdmwd/c3MkDim0Rn1DhHf6A0mY2b6scJGdXduOkekmJ9nHg== X-Gm-Gg: ASbGncv/CggLNkUp0OtA7qcHuX8UDVA9i5KWf9SW9o3KAvauAGdRzCeG8UdUDHbWxr4 QK0qHdH4idc08LtXu2Vgd3DNU5yCw4vybm+/WPHLdhOyNqWd88L7/cZXDiS/Pk940bz5J4dR7In CXO9F5h+krttR9a/JfiK79qikdrZ9xh+ZzLKTUbis5rbwD76XmjPBp2v59kglvrTzHxgMhW91cZ cg5LItcUBptOEtvRW+ZhB7ThupotVj1rpaSdmdxF1sEPGE1rKu6GTyBbfKyHjhx8WbRA8Mtuw8G 8SwY3hkQ6Mc1obelPYR4oN7Px45TkwOB3Zs650eRZoCGIeO+g1iDvIKbfVRATVrg X-Google-Smtp-Source: AGHT+IEPXOm57LsFGNDMEBrpqee1zrDr4diZMjBQBwRGea6q57CNTeAINp3ry9MTi27ImTlXQFA4/Q== X-Received: by 2002:a17:907:7250:b0:aa6:63e2:535c with SMTP id a640c23a62f3a-aabdb3bf4eemr51858366b.28.1734370562358; Mon, 16 Dec 2024 09:36:02 -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-aab963598c2sm351739466b.96.2024.12.16.09.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 09:36:01 -0800 (PST) In-Reply-To: <86ttb3pos2.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 16 Dec 2024 18:37:33 +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:297200 Archived-At: Eli Zaretskii writes: >> Date: Sun, 15 Dec 2024 21:16:16 -0800 >> From: Jared Finder >> Cc: Eli Zaretskii , Filipp Gunbin , >> 74833@debbugs.gnu.org, shipmints@gmail.com >>=20 >> On 2024-12-15 19:40, Gerd M=C3=B6llmann wrote: >> > Jared Finder writes: >> >=20 >> >> 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. >> >=20 >> > The Elpa package xclip uses that. >> >=20 >> > ;; This package allows Emacs to copy to and paste from the GUI=20 >> > clipboard >> > ;; when running in text terminal. >> > ;; >> > ;; It can use external command-line tools for that, which you may=20 >> > need >> > ;; to install in order for the package to work. >>=20 >> Thanks. I just tested xclip-mode from Elpa and it indeed works to get=20 >> copy operations work with Terminal.app. I think the best path forward=20 >> would be to just mention this package in the NEWS update as a workaround= =20 >> for folks using Terminal.app. We could also recommend using iTerm2 as a= =20 >> GPL'd alternative that properly supports copy. (Paste works fine because= =20 >> Terminal.app supports xterm bracketed pastes.) >>=20 >> 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. In my last reply to the OP I wrote=20 Mouse support by default is an important feature, IMO. It makes the menu bar usable, or in a future Emacs containing tty child frames tooltips can be shown. Not to mention setting point and what else. What's the positive effect of turning mouse support off by default? Command-C works for users who haven't set up terminal Emacs well enough that they could use M-w, plus in addition don't know Terminal.app well enough to know about Command-R or Fn + mouse.