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:30:30 +0100 Message-ID: References: <8634iszpa5.fsf@gnu.org> <86y10ky9wf.fsf@gnu.org> <86wmg4xd2u.fsf@gnu.org> <86y10jwmsb.fsf@gnu.org> <86ldwiwvjc.fsf@gnu.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="25131"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Jared Finder , 74833@debbugs.gnu.org, shipmints@gmail.com To: Filipp Gunbin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 18:33:06 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 1tNExu-0006Ml-Bh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 18:33:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNExd-0003ax-S0; Mon, 16 Dec 2024 12:32:50 -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 1tNEwu-0003LF-FV for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:32:09 -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 1tNEws-0002ou-U3 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:32:03 -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=z7YMfZv6tSXE/iHWBdHjkLjC6cJPzDLA9+Wxqjf03PM=; b=RJFHV81L4wGbdil+yjnIeNFx0BKMmZWkGyfJTxZ43cn/d3lagl/bGdYq8TDuoHqfuuQ4PDFRlao8NSitBCHj5kViEDOkEhU0NMP5T+aFEpDNeuf361j8uhhiC7bTPLOBkOhovEysVfi6WJPh58YMO1umjQxjbbSIF3Pm5pYmAq7MKQqVQHbTZFUlQZega004yR6+5+ICZflagzmfU7CIoeyLYK0FXo7Wzygv6GAbQJy6DXyY/2+ChAJjcbJsnMAUhKy1cYlY5t/S4YIUxHWlJPzcUKLbeIKQ82UUI8wuGJ6T7IOsqMjT5TJXrX6cidrE8tT9YIOdZz4cn/q++ZYWRg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNEws-0006bx-M9 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:32:02 -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:32:02 +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.173437029825334 (code B ref 74833); Mon, 16 Dec 2024 17:32:02 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 16 Dec 2024 17:31:38 +0000 Original-Received: from localhost ([127.0.0.1]:55921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNEwS-0006aT-RV for submit@debbugs.gnu.org; Mon, 16 Dec 2024 12:31:37 -0500 Original-Received: from mail-ej1-f54.google.com ([209.85.218.54]:48271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNEwP-0006aI-7R for 74833@debbugs.gnu.org; Mon, 16 Dec 2024 12:31:34 -0500 Original-Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-aa66ead88b3so792451266b.0 for <74833@debbugs.gnu.org>; Mon, 16 Dec 2024 09:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734370232; x=1734975032; 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=z7YMfZv6tSXE/iHWBdHjkLjC6cJPzDLA9+Wxqjf03PM=; b=et3JH3YEKrJp5Ibz+lLsoK7NcL+FLYIsgM8l92liIJW0EuaBs8vzC+5JfAx5TlwH3P Q4DIo8oCOV4GE/LaGgYEIaZavyyXv+3TOvKA0zptLh0Ob9MdnfBsAVloBbOX3rHGGOys 1l0ZZC3Liqvdw9nJNhpQw8qL573QpKlSDnfG2J4fIxPHJppRbnqSaecRXHDlAAjk4pFa k7Pl+JnKCRnugLshHwxuwO0dMzfAu6U3iIDAdAfNJBCdoPmaIxHED2qAT7mkxdfWfZfX JC3SbRTbcuZlBtVRoaCknxLAjjFjuj6kfbb3mi0QOt+MO7h9aOr5sRURAOItKaTR2yJH DOtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734370232; x=1734975032; 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=z7YMfZv6tSXE/iHWBdHjkLjC6cJPzD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6a1a:b0:aa6:834b:d136 with SMTP id a640c23a62f3a-aab779b3411mr1411881566b.33.1734370232099; Mon, 16 Dec 2024 09:30:32 -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-aab963594c9sm350699266b.112.2024.12.16.09.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 09:30:31 -0800 (PST) In-Reply-To: (Filipp Gunbin's message of "Mon, 16 Dec 2024 19:32:22 +0300") 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:297197 Archived-At: Filipp Gunbin writes: >> Terminal.app's Command-C can only copy a selection that the app knows >> about. > > Not really - with xterm-mouse-mode disabled (and with "Allow mouse > reporting" ticked in Terminal.app menu), mouse selection in Terminal.app > is not related to Emacs selection, and copy / paste works. What I meant with my sentence is that the selection Emacs shows and the selection Terminal.app shows and uses are not related to each other. Maybe that's a cause of confusion, I don't know. > >> If the mouse is used by an app like Emacs (Terminal.app's >> Settings/Report ....)) the user tells Terminal to let the app use the mouse. >> I find it little surprising that when Terminal.app does that, it doesn't >> use the mouse itself to make a selection it could then copy. > > It does, although that's Terminal.app's "own" selection, not Emacs's. > >> Do Command-A Command-C and see what happens. >> >> Or use Command-R to toggle the mouse reporting setting on the fly. >> >> Or use xclip in Emacs. >> >> Please don't disable xterm-mouse for this. > > Again, it turns out that the new default leads to copy not working at > all, while with previous default you could make selection in > Terminal.app (it's not reflected in Emacs) and then copy. Paste works > in both cases. It still looks to me that the old default is better. If > you enable xterm-mouse-mode, then perhaps you should also use xclip, not > just the mode itself. 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. I think it's best if we simply agree to disagree.