From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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: Thu, 26 Dec 2024 15:51:14 -0800 Message-ID: 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> Reply-To: Jared Finder Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 74833@debbugs.gnu.org, Eli Zaretskii , fgunbin@fastmail.fm, rms@gnu.org To: Ship Mints Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 27 00:52:24 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 1tQxeR-00059V-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Dec 2024 00:52:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQxe8-00067q-Dd; Thu, 26 Dec 2024 18:52: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 1tQxe6-00067f-Ir for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 18:52:03 -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 1tQxe6-0003o1-6l for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 18:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:MIME-Version:To:Subject; bh=d8wt1iVaSXzzRYnuypV1oC4ReoicnkLcKurXnJNVp1o=; b=HYL7BECZiERzeaKlY+so52sJDxtYDsJ37IIR68/gtlLjCvonbqNzFAGHb+STz3p1g333wt39pqtVI8PnmVouxSER0HUtJ3USpT+X74W5iICywNlYwtsJCrnib3YQEaSbfrsSOLeCoit1H3aFmiXi+A6nuzfzKBeYZd7VgENSZIfruMtUQbfVZKmMryBI4amhG5lYPv9HrhmsGe9GgZ9TJ9Y9Fvbm4trJfdRFv/6bFDm/qQim4e8UEXEOwgnNJNAR0KHlAb2KXqi4fB7dHryGDWgVR4SwGxWFuHhtMcPJYsft2A4rpmcGNXR81wBwsTKy882ENybL8qfjb40x9Gqdrw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQxe5-0002Do-Oh for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 18:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jared Finder Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2024 23:52: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.17352570858461 (code B ref 74833); Thu, 26 Dec 2024 23:52:01 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 26 Dec 2024 23:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:43162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQxdV-0002CO-A1 for submit@debbugs.gnu.org; Thu, 26 Dec 2024 18:51:25 -0500 Original-Received: from greenhill.hpalace.com ([192.155.80.58]:34538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQxdN-0002Bw-2J for 74833@debbugs.gnu.org; Thu, 26 Dec 2024 18:51:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1735257074; bh=oErRAJSSaGptGuZreTeZStiUZWP853GNt65i7Mk6AxY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ugVrO0+xXOf3RoLEcN9FNIWDaEeqILMkgr7CeMNEPQgTVot6jYjADByrM1aHzSg6S fv3dQ2P193w+VJVpzfBmDXSOQXc5t+S4ie5kZf9hrW3TmU0AGnYx4lRnl+UspYbptD 7TB1rU57U82uGqkj9rGYvL3y3gdo9tsQNSnMHEszlFUUUjgP4P2CBQ3npyJcZIJTak uJdyRcfzof9pgGX9sXmj6JskJsGRLsUWMSTmp7C95LtYZAY+5CL/xV9rWVJq/v4hja 1FMROpW6tHQpskF3ZsVQGmI9sOuiQd3PSPD2vUGSJnj+sXcPF5pvykqcpiTbnz9P2Q TkyLafNa/vfaA== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 747B02B28; Thu, 26 Dec 2024 23:51:14 +0000 (UTC) In-Reply-To: X-Sender: jared@finder.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" 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:297797 Archived-At: 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? 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). -- MJF