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: Thu, 12 Dec 2024 20:55:11 +0100 Message-ID: References: <8634iszpa5.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="36296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74833@debbugs.gnu.org, Filipp Gunbin To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 12 20:57:31 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 1tLpJS-0009CT-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 20:57:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLpJB-00078g-7y; Thu, 12 Dec 2024 14:57:13 -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 1tLpJA-00076u-1F for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 14:57:12 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLpJ9-0005UC-Of for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 14:57:11 -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=m/xS1pmtvtfX8Yq0S23HdP6ruLZcX6VleuAQFugjZIw=; b=Zq956NOtzhqsnfQCEQUwt1H8lp3PWQIA1HARm4aTw26o8nt1BmnM27k2FcSnXGBH1mfdOXf1NZCCwtrtrMhNIQGRGMj52+Q05ia7788xX+m+E7Lwj0OQ7dHAmCeyNzdpatqBwPVa6mk9ESh0NHtZ/kfYqf2c416teeBmksgl+ohDw7ucdnqBQ2PgsdCmnegrhi1On7kzbLVXDmWH6QXxR+LZOl8d+ibzLqHlS2ddTubDKasNIb7l2SZuE67sQWw+De2OdsFy6ZqwQhp1hRQyq14paNSR3xEJUPgqCkPC9tj+ljrJellrBobhTV/7MXC/p/kTvz3UhdPq9jrQopL2NA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLpIz-0005fl-VP for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 14:57: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: Thu, 12 Dec 2024 19:57: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.173403338221725 (code B ref 74833); Thu, 12 Dec 2024 19:57:01 +0000 Original-Received: (at 74833) by debbugs.gnu.org; 12 Dec 2024 19:56:22 +0000 Original-Received: from localhost ([127.0.0.1]:40430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLpIH-0005eH-7c for submit@debbugs.gnu.org; Thu, 12 Dec 2024 14:56:22 -0500 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:52733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLpID-0005e4-H8 for 74833@debbugs.gnu.org; Thu, 12 Dec 2024 14:56:14 -0500 Original-Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5d3f28881d6so1179257a12.1 for <74833@debbugs.gnu.org>; Thu, 12 Dec 2024 11:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734033312; x=1734638112; 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=m/xS1pmtvtfX8Yq0S23HdP6ruLZcX6VleuAQFugjZIw=; b=FXs6law6ahOk1+ovPIqXA0CvrPhWs1plHcUGC5HHNnpCX/trRacFNq37ceUsmwZVfq 3r1Q6ly5D2Aj2S839rWT30dE6lK0HhZSyYJRARmVV30o/IV9Ucztbo7offr3cQFQLneu sS0b9Kh27E6EqINIjHIzzVQ3D//4GnOGBHrWBO0IwszM4EA/JYjhCz8YR3NYHSOYVs8H Ft5qOR7Jk19ZhMfHYo2u+X3JdAQVfL3aBgyPflrrLdAy4K5VFhr2/kn9rNznjj3+ImYv W2FtczUK34VFSY2faN8nS6zF1NFpUCwWmKV7410NLmzr5Dfb2b/K2mnUvuA/vUWt6Iu0 QTCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734033312; x=1734638112; 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=m/xS1pmtvtfX8Yq0S23HdP6ruLZcX6VleuAQFugjZIw=; b=FK28D6t4PdV6qaz/sRdOVIypXGHjATrmT0vMvccY5EkTOCCM0fbGViAHuVNJ7hYaH5 kfLX4btRPxe1eNMtBSzDk1zaauHU/8HHSBJg1Q1f0WUCRBETaeOTVorO8pwdywr/qTib MQGTHvOTaupDofWOzIvd0Q1eTl41UnDtVd+tudMUym+K0hqUp5OEwHHkXZvAB0i8K4sx d2By011MW9NMe+p1VpEU8OkvpzHuxvaJ0GH2VdM0VybV4BK7+ijhqa9OpIx7TyyZkvwP gRPddLlzUI3DygAKD/f3gTdpPgaVhBgJ4JmaLgfP22t7XnLXZ60W/HrpzP2nu0FF6tsd mJjw== X-Forwarded-Encrypted: i=1; AJvYcCU6uXI8scYmRE/jPTgOG6hHQjIPYW0QnUFsGcYBl5xD0kRZXFB51SoreBMVa0w9ke79ko5Y6Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy88ZB+41UEm9slyqvgEmv583JhVYb3gKtk1X8caq5FgRcAsDpo hrUsclYTXB3MdsYdVbL0QCXrcpwU6kbl4VxpXeiCzpFpTKdZIXgo9+0JMzP2 X-Gm-Gg: ASbGnctcLHna6m2hcMZfHVkuOkou89QPc4vbPlIRMAJo5nj9updaa1Cadn9orRTY/HJ YK2SXzKu3qpRpZ136YML78Q+Mie1pu/BEI+F9aSHsbAJKRaD6L6Hc1UJVRxgGKLWHd+IA4zSzCc h4gL8oC+8Wi8nA7mOoiPmvuchEQsqhx3naJJHVkZ58BrqyZiR8xMP7HEAQOmcCiFNpGXB+QaDS1 3tJjn5ZY2PgJBkh2w93GhL6zC8InZp/zYChklbYw5FOkq1JgCJPw9edDHtYIaM7XeN5V8wwFJ4a pNgf9LBcIcVsuP2VvU5gzSwKKZVpqlI8g8hQMbEtQJWQqSmly1ijNMQpL0VJo/A4BA== X-Google-Smtp-Source: AGHT+IFt+iO1awBAGH2C48oeAtWD8tdg2oInWWubXit8vH7RuTX3MAUcirOA0JsrcPonRSmsAUab/w== X-Received: by 2002:a05:6402:27c9:b0:5d0:d818:559d with SMTP id 4fb4d7f45d1cf-5d63237b183mr2966846a12.11.1734033312132; Thu, 12 Dec 2024 11:55:12 -0800 (PST) Original-Received: from pro2 (p200300e0b71a7600d154e1b5a86cbe2e.dip0.t-ipconnect.de. [2003:e0:b71a:7600:d154:e1b5:a86c:be2e]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa6260e2c3csm1151039066b.182.2024.12.12.11.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 11:55:11 -0800 (PST) In-Reply-To: <8634iszpa5.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Dec 2024 21:15:14 +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:296947 Archived-At: Eli Zaretskii writes: >> From: Filipp Gunbin >> Date: Thu, 12 Dec 2024 20:54:53 +0300 >> >> macOS, Terminal.app, xterm-mouse-mode enabled >> emacs -nw -Q >> Select something with mouse, press Command-c >> Try to paste into another program - text is not in the clipboard >> >> Perhaps this is not new, I just tried xterm-mouse-mode for the first >> time, given that it's now the default in master. >> >> Trying different combinations of select-enable-clipboard and >> select-enable-primary did not help (that variables are all I know in >> this area). > > Does the macOS Terminal.app support the xterm mouse protocol? Yes it does. The clipboard problem is something unrelated. Terminal applications can access the macOS clipboard via command line utilities pbcopy and pbpaste. I'm using the package xclip for that, which is very simple to use ;; Clipboard support in terminal Emacs using pbcopy/pbpaste. (use-package xclip :straight t :if (not (display-graphic-p)) :config (xclip-mode 1)) Command-C, Command-V in Terminal.app are used by Terminal.app itself and not by applications running in the terminal emulator. For example, to copy shell output or paste something as shell input. I don't think Terminal.app allows altering Command-V etc. so that Emacs could use them. Other terminal emulators like iTerm allow doing that. In summary, this is not a bug.