From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Ship Mints <shipmints@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 15:07:25 -0500
Message-ID: <CAN+1HbqqUoa1KK4xNGz1CO7mrmk=NTnFei1Fr8qchccbLqC2Zg@mail.gmail.com>
References: <m1cyhweqhe.fsf@fastmail.fm> <8634iszpa5.fsf@gnu.org>
 <CAN+1Hbr1k9vOBfB_rSxOTPnB51wM_w132hG7k_1Y61FkBDs=tQ@mail.gmail.com>
 <86y10ky9wf.fsf@gnu.org>
 <CAN+1HbrAA9HuGp-VFfQUbFLfu87B=2u6xYKs-=RR64p4Z7Ozfw@mail.gmail.com>
 <86wmg4xd2u.fsf@gnu.org> <m1y10jo81o.fsf@fastmail.fm> <86y10jwmsb.fsf@gnu.org>
 <m1msgznx20.fsf@fastmail.fm> <86ldwiwvjc.fsf@gnu.org>
 <m2ldwi8uvx.fsf@gmail.com>
 <m1pllrtwq1.fsf@fastmail.fm> <m2jzbzfscp.fsf@gmail.com>
 <m1v7vjsavb.fsf@fastmail.fm>
 <CAN+1Hbo03URNb5dUVgiX8ofzrYiWG9VtB3AF9pjGvRxrMgyYDQ@mail.gmail.com>
 <86ed27pfhj.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000850ced062968bd7c"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="2930"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: gerd.moellmann@gmail.com, jared@finder.org, 74833@debbugs.gnu.org,
 fgunbin@fastmail.fm
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 21:10:27 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 1tNHQB-0000aR-6k
	for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 21:10:27 +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 1tNHPt-0007kI-VW; Mon, 16 Dec 2024 15:10:11 -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 1tNHPq-0007it-8D
 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 15:10:06 -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 1tNHPn-0001EV-30
 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 15:10:05 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=Date:From:In-Reply-To:References:MIME-Version:To:Subject;
 bh=pqZVDkftAGuDvFyBGUa0Ft0ulNyCAKWnXfwddXIoAKI=; 
 b=kITl/PBz6qPxV6TaSAODE5WQYDLnZjkgDqTwooaRfgA0YF53lmnPzaODv/sLddESdM/FygJi8gfQA/nzxEm5u8xg9YOz299/B8zLaWNcMqmFOBUEMZEPVjOz/SNVUvoKnflTWrcH1U/X8ts/+Mjq7oAfLR5vhyCtdhMMnBVsh3rJRlUD9Y4OREdItBVC9+IlhZV0xcNB2fdBNUqFMXo/BOhRfwZLwaTCKoDRMO7OIMus7SuLuU1rBbBy7mGoH+GULmJ1A8+8bBm/n6cj/OO+NjZUcMdmuGC7N7fFqvJsk0ODRYFdvCr4+kLo6GH/zNwY+H6egbKYgiIwdb45e60/pg==;
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tNHPm-0006sM-9y
 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 15:10:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Ship Mints <shipmints@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 20:10:02 +0000
Resent-Message-ID: <handler.74833.B74833.173437976126345@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.173437976126345
 (code B ref 74833); Mon, 16 Dec 2024 20:10:02 +0000
Original-Received: (at 74833) by debbugs.gnu.org; 16 Dec 2024 20:09:21 +0000
Original-Received: from localhost ([127.0.0.1]:56346 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tNHP6-0006qq-R4
 for submit@debbugs.gnu.org; Mon, 16 Dec 2024 15:09:21 -0500
Original-Received: from mail-ua1-f52.google.com ([209.85.222.52]:52504)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <shipmints@gmail.com>) id 1tNHP4-0006qa-PW
 for 74833@debbugs.gnu.org; Mon, 16 Dec 2024 15:09:19 -0500
Original-Received: by mail-ua1-f52.google.com with SMTP id
 a1e0cc1a2514c-84ff43e87cbso1114311241.1
 for <74833@debbugs.gnu.org>; Mon, 16 Dec 2024 12:09:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1734379693; x=1734984493; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=pqZVDkftAGuDvFyBGUa0Ft0ulNyCAKWnXfwddXIoAKI=;
 b=gFMLvR/9JyaBYukBRZ6ZPc9Jav04POu2C4drv3nKabLeUPoAoMCH9geG8rAlYeH1WI
 UHKTx+pKD/E2kUQfYiEVhUDtoEmylIT7FXxnePo7WLxXxhnlF460CUP0z3ZDki1baVKQ
 R0S++UmnrzJQ4/5JAPj5Js4Ufj4z/fpGfnVKyLmKmnRrmLJO9OGrt5kl8sdELEKQFuoi
 V02KofCi/AEzMO45jeYCL/9HS/jqAhc2/WEjdeBVJD/sEHMULqWeOauSMEdENfDwkM8L
 rSf2tAvxlEb+mkX+7KAFfGHYo58kr0LXSYdgz3tqTWMoNN6B7rxSLTLlhsdo7FgWX+Bf
 QMUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1734379693; x=1734984493;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=pqZVDkftAGuDvFyBGUa0Ft0ulNyCAKWnXfwddXIoAKI=;
 b=wDcAVugDggq3bS9nKkbDFrTJQEOBGekGDuRr4DEpE4tEDZoWgxljRfXogrC8uxhZjH
 gcRh2cMbwXkB2Y6sbEk8OHp0W6yY2uXAcWXPNK+t4179QnYmQWDlold+ashR0DfblOZr
 RnMu4U5xRO8nTDWoW0N4mmx1va+lN3C+tRVXo5l+6dfaDR3ps6Ldo7SaTiE0TmS7az3O
 yR1Bmohxj/hpCfFUY1krcJZ5CkFRhAyRH+b0vDYVpn9YUKCyztUQp1/3UHLvZ2MwoY9E
 l0WYArHhk5PnCiltoEqiMThnEV9RurcxvRojDt8VOQQKeHd+vvj42ThTXh5wtrEPx4Vv
 pNlg==
X-Forwarded-Encrypted: i=1;
 AJvYcCWw5Zlbq8XfyyM+htQ1ypWINrQkeokR7+24Kc3NVyksFENJffTwexOi5/2jTrQx7V6tTBPg/A==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyKOdDxnKsYS8Wmdp72vSxlDREopDF9sgX+jbCfUnEVUI4NWt4v
 2Gi6QhA5ciWuKQ7NXQI90GWpLBKjxfQENCEEng6bz+5EbU7DGkIOhDt7ljMb+c7VtyG42HTbQTA
 p+hAxRc+5Qy/5Hq3hT1n76CGDUHM=
X-Gm-Gg: ASbGncsolnL2S2RxtBTURmagHOuJ4Q+3yUJ99KFPVz4A33rYfY1SglP4JyqlCywGSj0
 oYS9ByqxQRrA3Hrl3C8RR3yZNNzKcSNh1lvHXgw==
X-Google-Smtp-Source: AGHT+IHFHl87ukNUYgQoZFFx0Rlv8Mp7NgDmkRBeHxhFZROV8Ddi2tCIfb+hW1TnF3zTCU0qP3CZ84Iz05IZW7j+zQ0=
X-Received: by 2002:a05:6122:8c27:b0:516:157c:a72e with SMTP id
 71dfb90a1353d-518ca2172femr13755995e0c.3.1734379693212; Mon, 16 Dec 2024
 12:08:13 -0800 (PST)
In-Reply-To: <86ed27pfhj.fsf@gnu.org>
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:297227
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/297227>

--000000000000850ced062968bd7c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Now I see the recent change to master (Dec 9). I'd add that pretty much
every other "curses" based app that supports mouse activity defaults to
mouse on, though. Not sure why Emacs's recent default to on should be
surprising. People would be surprised that the mouse doesn't work. That
Terminal.app also steals command keys from those apps is also not a
surprise.

On Mon, Dec 16, 2024 at 2:58=E2=80=AFPM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Ship Mints <shipmints@gmail.com>
> > Date: Mon, 16 Dec 2024 14:20:40 -0500
> > Cc: Gerd M=C3=B6llmann <gerd.moellmann@gmail.com>,
> >       Eli Zaretskii <eliz@gnu.org>, Jared Finder <jared@finder.org>,
> 74833@debbugs.gnu.org
> >
> > I think about it like this: if Terminal.app successfully passed through
> all its keys (which it can be configured to
> > do), Command-C would appear in Emacs as M-c but it doesn't. Does it
> surprise you that Command-P offers
> > the print dialog when Emacs is running in the terminal? This is no
> different than Command-C. That
> > Terminal.app supersedes Emacs is not an Emacs problem, it's Terminal's
> problem. This feels like
> > documentation issue not something to cure with default Emacs
> configuration.
> >
> > Other terminal applications like iTerm or WezTerm can be programmed
> similarly to pass through all keys
> > that you want them to with modifiers, but by default, they don't. These
> can't be Emacs's problem either.
> > Same with Emacs run via ssh with tmux on the other side. That's a
> "default" set of features offered on many
> > systems and their configuration is not Emacs's problem.
>
> I see your points, but the fact remains that our enabling of
> xterm-mouse-mode triggered these problems where previously there were
> none.
>
> > This issue sounds like an "impedance mismatch" to my ears, even if it
> surprises some users and requires
> > some configuration depending on your specific goals and should perhaps
> be better documented.
>
> If a default behavior needs documentation to explain it, it is usually
> a sign of a not-very-good default, IME.
>

--000000000000850ced062968bd7c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">Now I see the recent change to master (Dec 9). I&#39;d add that pretty m=
uch every other &quot;curses&quot; based app that supports mouse activity d=
efaults to mouse on, though. Not sure why Emacs&#39;s=C2=A0recent=C2=A0defa=
ult to on should be surprising. People would be surprised that the mouse do=
esn&#39;t work. That Terminal.app also steals command keys from those apps =
is also not a surprise.</div></div><br><div class=3D"gmail_quote gmail_quot=
e_container"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Dec 16, 2024 at =
2:58=E2=80=AFPM Eli Zaretskii &lt;<a href=3D"mailto:eliz@gnu.org">eliz@gnu.=
org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x">&gt; From: Ship Mints &lt;<a href=3D"mailto:shipmints@gmail.com" target=
=3D"_blank">shipmints@gmail.com</a>&gt;<br>
&gt; Date: Mon, 16 Dec 2024 14:20:40 -0500<br>
&gt; Cc: Gerd M=C3=B6llmann &lt;<a href=3D"mailto:gerd.moellmann@gmail.com"=
 target=3D"_blank">gerd.moellmann@gmail.com</a>&gt;, <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0Eli Zaretskii &lt;<a href=3D"mailto:eliz@gnu=
.org" target=3D"_blank">eliz@gnu.org</a>&gt;, Jared Finder &lt;<a href=3D"m=
ailto:jared@finder.org" target=3D"_blank">jared@finder.org</a>&gt;, <a href=
=3D"mailto:74833@debbugs.gnu.org" target=3D"_blank">74833@debbugs.gnu.org</=
a><br>
&gt; <br>
&gt; I think about it like this: if Terminal.app successfully passed throug=
h all its keys (which it can be configured to<br>
&gt; do), Command-C would appear in Emacs as M-c but it doesn&#39;t. Does i=
t surprise you that Command-P offers<br>
&gt; the print dialog when Emacs is running in the terminal? This is no dif=
ferent than Command-C. That<br>
&gt; Terminal.app supersedes Emacs is not an Emacs problem, it&#39;s Termin=
al&#39;s problem. This feels like<br>
&gt; documentation issue not something to cure with default Emacs configura=
tion.<br>
&gt; <br>
&gt; Other terminal applications like iTerm or WezTerm can be programmed si=
milarly to pass through all keys<br>
&gt; that you want them to with modifiers, but by default, they don&#39;t. =
These can&#39;t be Emacs&#39;s problem either.<br>
&gt; Same with Emacs run via ssh with tmux on the other side. That&#39;s a =
&quot;default&quot; set of features offered on many<br>
&gt; systems and their configuration is not Emacs&#39;s problem.<br>
<br>
I see your points, but the fact remains that our enabling of<br>
xterm-mouse-mode triggered these problems where previously there were<br>
none.<br>
<br>
&gt; This issue sounds like an &quot;impedance mismatch&quot; to my ears, e=
ven if it surprises some users and requires<br>
&gt; some configuration depending on your specific goals and should perhaps=
 be better documented.<br>
<br>
If a default behavior needs documentation to explain it, it is usually<br>
a sign of a not-very-good default, IME.<br>
</blockquote></div>

--000000000000850ced062968bd7c--