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: Fri, 27 Dec 2024 10:02:43 +0200 Message-ID: <865xn5y2n0.fsf@gnu.org> References: <8634iszpa5.fsf@gnu.org> <86y10ky9wf.fsf@gnu.org> <86wmg4xd2u.fsf@gnu.org> <86y10jwmsb.fsf@gnu.org> <86ldwiwvjc.fsf@gnu.org> <86ed27pfhj.fsf@gnu.org> <86a5cvpeiv.fsf@gnu.org> <86y10eo5h6.fsf@gnu.org> <986a3eea465e13c57bcdd7ce8f27f99d@finder.org> <864j2w6tz0.fsf@gnu.org> <861pxy5zxk.fsf@gnu.org> <86jzbq4i6x.fsf@gnu.org> <86frme4exq.fsf@gnu.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="27555"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 74833@debbugs.gnu.org, fgunbin@fastmail.fm, shipmints@gmail.com, rms@gnu.org To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 27 09:04:13 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 1tR5KO-00070n-VW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Dec 2024 09:04:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR5KG-0007B7-F5; Fri, 27 Dec 2024 03:04: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 1tR5KE-0007Ar-An for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 03:04: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 1tR5KE-0001sD-1d for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 03:04: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:References:In-Reply-To:From:Date:To:Subject; bh=jbd+KPV6q1sVpl5rifJALhSeTi3CSE/AhSukPKhaWPA=; b=IVqYhNLnCxmjb5LHnXMcYBt1OffECrPMpX5UnqdALlg5Siu4IMdlmZfZaLQrgPSU+qdPP5BH/OAoUB95EBnR9vcBVT91ZG6XF0xtVweDaz0DO5ZGNi92pysGkylXHsZQ3jFpbA5cfUONS3Ppi7FZqBVqN3Xj8VQ1ofS/89O4njkqlbqvgwJKt5xjj11N4zhVxDt4qoa3mUXuLoqzcckZwcDm6QRGExJQcoa5EJ+W1eVOK+cZRyiVLAPfo0IycQusWi/PKYlJsuL4rlZZREafkEJOewWwE4Y2k3Xa54t4a4eZxwd+M55mJM2GKzX1QYznZY+ppBMjitZVWPyzlApIwA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tR5KD-0001vr-LK for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 03:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Dec 2024 08:04: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.17352865857328 (code B ref 74833); Fri, 27 Dec 2024 08:04:01 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 27 Dec 2024 08:03:05 +0000 Original-Received: from localhost ([127.0.0.1]:44570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR5JJ-0001u8-BM for submit@debbugs.gnu.org; Fri, 27 Dec 2024 03:03:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR5JG-0001tc-Cg for 74833@debbugs.gnu.org; Fri, 27 Dec 2024 03:03:04 -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 1tR5JA-0001m0-Kn; Fri, 27 Dec 2024 03:02:56 -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=jbd+KPV6q1sVpl5rifJALhSeTi3CSE/AhSukPKhaWPA=; b=T2qQbiE7V4JE03T7EEXt ulx+KppdeUPhyh7lhT8SLjS8hwxOz1MNFDrke1s+cnP/HVBdrgwrrU/5LPsBms/ez5lr4rnCSL9aU H6XybAqihfN9/TkDyItjHNp8I2EE+AsJBtcuKcXBT0WMrn6ta92enD4FLuAbf7INcJ9tya9Vxds92 1Ty5SzDtviSNhR1Cco3XAywdD0B4XZVXvdAIGG/Ix9W8iQcag/wH00VcRoi7DqUz79CtpiAiHBg88 a+JsXRWOLaHNwyLFHvr+GNHYEjZCyeorLons1o9irxgy+rtQZv1WqHK/Rv9zWjJoiMT2dNZS4u+0h O5ydsfmqKVvcnQ==; In-Reply-To: (message from Jared Finder on Thu, 26 Dec 2024 15:51:14 -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:297810 Archived-At: > Date: Thu, 26 Dec 2024 15:51:14 -0800 > From: Jared Finder > Cc: Eli Zaretskii , rms@gnu.org, gerd.moellmann@gmail.com, > fgunbin@fastmail.fm, 74833@debbugs.gnu.org > > On 2024-12-23 11:43, Ship Mints wrote: > > On Mon, Dec 23, 2024 at 4:07 PM Eli Zaretskii wrote: > >>> From: Ship Mints > >>> > >>> Away from a computer, but I think this is still the same in 0.82 > >>> these days and I assume you're using modern > >>> ssh. > >>> > >>> https://serverfault.com/a/819740 > >> > >> OK, so does this mean we want to tell PuTTY users to configure this in > >> some specific way that Emacs can recognize? > > > > Still away from a computer. If you can set a variable using that method > > and have it pass through for you to test in lisp, then it would be a > > good idea to recommend. We could suggest using TERM_PROGRAM and setting > > it to "Putty". > > What if we only auto-enabled xterm-mouse-mode on OSC52 compatible > terminals? On OSC52 compatible terminals, or on OSC52 compatible terminals that define TERM to xterm-like string? The latter sounds like a good idea to me, but only if support for OSC52 necessarily means xterm-mouse escape sequences must be supported. Is this conjecture indeed true? > Between $TERM and the results from the terminal escape > sequence "ESC [ > 0 q", Emacs can have high confidence if it is running > on an OSC52 compatible terminal. I checked against most of the terminals > mentioned at > https://can-i-use-terminal.github.io/features/osc52copy.html I just > wasn't able to test Foot (Wayland-only), hterm (Chromebook-only), mintty > (Cygwin-only), or xterm.js (I have no idea how to test). How do I check this? can you show some script or Lisp or whatever you used to check? Thanks.