GNU logs - #79830, boring messages


Message sent to sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79830: Context menu keys on tty
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Nov 2025 07:19:02 +0000
Resent-Message-ID: <handler.79830.B.17631047218713 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 79830
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 79830 <at> debbugs.gnu.org
Cc: Spencer Baugh <sbaugh@HIDDEN>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
X-Debbugs-Original-Xcc: Spencer Baugh <sbaugh@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.17631047218713
          (code B ref -1); Fri, 14 Nov 2025 07:19:02 +0000
Received: (at submit) by debbugs.gnu.org; 14 Nov 2025 07:18:41 +0000
Received: from localhost ([127.0.0.1]:59737 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJo4v-0002GT-BN
	for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:18:41 -0500
Received: from lists.gnu.org ([2001:470:142::17]:41160)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vJo4t-0002GH-Qr
 for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:18:40 -0500
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 <juri@HIDDEN>) id 1vJo4W-0007gh-5f
 for bug-gnu-emacs@HIDDEN; Fri, 14 Nov 2025 02:18:21 -0500
Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1vJo4T-0002xN-PL
 for bug-gnu-emacs@HIDDEN; Fri, 14 Nov 2025 02:18:15 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4d77lC4hksz9t0n
 for <bug-gnu-emacs@HIDDEN>; Fri, 14 Nov 2025 08:17:59 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1763104679;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=ELcn3TPvZfc8JANbr5X/82y3YXwT6ZREAYsWtfRD318=;
 b=Sx7abAdlBYi5498W2PF2CjVtDkpv8WfBUmcsTidmXA/9WKLnvesT0tp0348bzsqYnzqUYb
 rM/YtWtPxXdcgNpmP6ZAjt93xkbGGiLPfsvw+LdKNK/UsnnlU5hWAvYSqkrUKGWb9n5uzg
 ee3l9bcyt7UqBqD5yIkPPSLSWB21qeHehm0rBqNZRS8q3Q+U6rj2SAMk60/WnBCBBZRPJD
 s4pgb5tMHYT0OrQPHJkh0R8kUfUmtI4dnNUWGkBjM3D3CiT1lbis2gDzfl+036+q+wWRS+
 EsHPOfWZYaVRwjY+p2KsEuBnrj6x0ETAhjs81C4IcGRzb7Nm25TcNLXpxzE8yA==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
Date: Fri, 14 Nov 2025 09:07:52 +0200
Message-ID: <87v7jdrv93.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Rspamd-Queue-Id: 4d77lC4hksz9t0n
Received-SPF: pass client-ip=2001:67c:2050:0:465::103;
 envelope-from=juri@HIDDEN; helo=mout-p-103.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain

Since on many terminal emulators S-f10 is not available,
here is a patch that binds it to C-f10 only on tty and context-menu-mode.

PS: not sure if it would be ok if Emacs started as daemon
will bind 'C-f10' to the context menu, then emacsclient will
still retain 'C-f10' on a graphical frame.  If this is a problem,
then we could define the binding conditionally using :filter.


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=context-menu-mode-C-f10.patch

diff --git a/etc/NEWS b/etc/NEWS
index 35c536d6ee8..e645c7c2e72 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -297,6 +297,10 @@ to extend the boundaries of the active region by dragging the mouse pointer.
 The menu item enables sending current file(s) or region text to external
 (non-Emacs) applications or services.  See send-to.el for customisations.
 
+---
+*** In 'context-menu-mode' 'C-f10' pops up the context menu on tty.
+This is because 'S-f10' is often intercepted by the terminal emulator.
+
 ---
 *** The mouse now drags lines in character increments again.
 Dragging a horizontal or vertical line like the mode line or the lines
diff --git a/lisp/mouse.el b/lisp/mouse.el
index f75800763e6..5c28f6f05f9 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -690,6 +690,9 @@ context-menu-mode-map
     (define-key map [mouse-3] #'ignore)
     (define-key map [down-mouse-3] context-menu-entry)
     (define-key map [menu] #'context-menu-open)
+    ;; Use C-f10 since S-f10 is intercepted by many terminal emulators.
+    (unless window-system
+      (define-key map [C-f10] #'context-menu-open))
     (if (featurep 'w32)
         (define-key map [apps] #'context-menu-open))
     (when (featurep 'ns)

--=-=-=--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Juri Linkov <juri@HIDDEN>
Subject: bug#79830: Acknowledgement (Context menu keys on tty)
Message-ID: <handler.79830.B.17631047218713.ack <at> debbugs.gnu.org>
References: <87v7jdrv93.fsf@HIDDEN>
X-Gnu-PR-Message: ack 79830
X-Gnu-PR-Package: emacs
Reply-To: 79830 <at> debbugs.gnu.org
Date: Fri, 14 Nov 2025 07:19:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
  Spencer Baugh <sbaugh@HIDDEN>
(after having been given a bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 79830 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
79830: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79830
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79830: Context menu keys on tty
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Nov 2025 08:08:01 +0000
Resent-Message-ID: <handler.79830.B79830.17631076505791 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79830
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: sbaugh@HIDDEN, 79830 <at> debbugs.gnu.org
Received: via spool by 79830-submit <at> debbugs.gnu.org id=B79830.17631076505791
          (code B ref 79830); Fri, 14 Nov 2025 08:08:01 +0000
Received: (at 79830) by debbugs.gnu.org; 14 Nov 2025 08:07:30 +0000
Received: from localhost ([127.0.0.1]:59901 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJoq9-0001VK-GK
	for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 03:07:29 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:34648)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vJoq6-0001Us-K4
 for 79830 <at> debbugs.gnu.org; Fri, 14 Nov 2025 03:07:27 -0500
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 <eliz@HIDDEN>)
 id 1vJoq0-0002cU-Ei; Fri, 14 Nov 2025 03:07:20 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=hgWHtV9kg/NjbgZh7DLr6LpMCzodN17VIe6urRdblVo=; b=iRh5w9D0VJyu
 c5YmlYlkeQM6ZtAaVHf8WnxrZgWEFYHongKYo10WSr2krldaM47Z7hb5SQnkVAD2SQkV5tk4g1btX
 V2SdHto0DvX2SthxpaQSj+gSPV2yf/r7dX6Zy9oJWDJn3Z7y3knFCxrSa67Qjq0GXh3FwZGQAorsy
 RpvO1L2kOxm3g8sTlstxWhGdhIUbGTDYK29XspKnf7lmzXYTuvknvaUnaGX03MitQHFERiETesbJl
 5u5F1uQNkD7VBb5QxqAy9kO8l7lCXRFsP0OutMEs7cedYx+n41OuZ6mvjQ7BaAf5EUoRBPdQ/rxxs
 YNgEa1RNnYd2u0t4XBvJxA==;
Date: Fri, 14 Nov 2025 10:07:17 +0200
Message-Id: <86ikfdqbpm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87v7jdrv93.fsf@HIDDEN> (message from Juri Linkov on
 Fri, 14 Nov 2025 09:07:52 +0200)
References: <87v7jdrv93.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: Spencer Baugh <sbaugh@HIDDEN>
> From: Juri Linkov <juri@HIDDEN>
> Date: Fri, 14 Nov 2025 09:07:52 +0200
> 
> Since on many terminal emulators S-f10 is not available,
> here is a patch that binds it to C-f10 only on tty and context-menu-mode.

Thanks, but shouldn't this binding be a global one, like S-f10?

(Btw, which terminal emulators intercept S-f10, and why?)

> PS: not sure if it would be ok if Emacs started as daemon
> will bind 'C-f10' to the context menu, then emacsclient will
> still retain 'C-f10' on a graphical frame.  If this is a problem,
> then we could define the binding conditionally using :filter.

Why not bind both regardless of the value of window-system?

(Btw, references to window-system the variable are deprecated; we
should use the function instead.)




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79830: Context menu keys on tty
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 15 Nov 2025 20:00:03 +0000
Resent-Message-ID: <handler.79830.B79830.176323674318224 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79830
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: sbaugh@HIDDEN, 79830 <at> debbugs.gnu.org
Received: via spool by 79830-submit <at> debbugs.gnu.org id=B79830.176323674318224
          (code B ref 79830); Sat, 15 Nov 2025 20:00:03 +0000
Received: (at 79830) by debbugs.gnu.org; 15 Nov 2025 19:59:03 +0000
Received: from localhost ([127.0.0.1]:37116 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vKMQI-0004jo-Sc
	for submit <at> debbugs.gnu.org; Sat, 15 Nov 2025 14:59:03 -0500
Received: from mout-p-201.mailbox.org ([80.241.56.171]:54038)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vKMQH-0004jH-If
 for 79830 <at> debbugs.gnu.org; Sat, 15 Nov 2025 14:59:01 -0500
Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4d84Zj6qp2z9tKf;
 Sat, 15 Nov 2025 20:58:53 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1763236734;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=4kYm0bTniohCnW+DGWG309/Myf/ZBPY3ATEoIeglXjY=;
 b=NlhKFTOv2Epe+RQjAKmgb7oipH+0IIQfCuB5Ue7tpIMhZ7FkytmeARBrYARyrJSKKgyIAK
 WQBAQ7hBItpqG7+GthHCGQtJn+x9DkVKY3KxffOaZXbcytieohuLUxc8EQNegk2zIPBB4C
 AFnUcuu16Thb22nhSxYfNksUnTgmmNyEYEhgaueQCWINDqHna3zDQbKUHxOyabIaObmmXQ
 UtEgKZ23Xt8NeZUA/H1i8cT+rhp6sujBUWSsbteE/IRG2zF6Pe4WU/46nMrmUYOF7m7ezx
 nX9Q3YVYl8XK5udIlhcCiTMoH73YTBy0CSBOtXD5/H0BkwPFGIy7FarpQbalrA==
From: Juri Linkov <juri@HIDDEN>
In-Reply-To: <86ikfdqbpm.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87v7jdrv93.fsf@HIDDEN> <86ikfdqbpm.fsf@HIDDEN>
Date: Sat, 15 Nov 2025 21:53:42 +0200
Message-ID: <87ecpzqdh5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> Since on many terminal emulators S-f10 is not available,
>> here is a patch that binds it to C-f10 only on tty and context-menu-mode.
>
> Thanks, but shouldn't this binding be a global one, like S-f10?

By default 'C-<f10>' is bound to 'buffer-menu-open'.

> (Btw, which terminal emulators intercept S-f10, and why?)

For example, MATE Terminal, and it can't be disabled.

>> PS: not sure if it would be ok if Emacs started as daemon
>> will bind 'C-f10' to the context menu, then emacsclient will
>> still retain 'C-f10' on a graphical frame.  If this is a problem,
>> then we could define the binding conditionally using :filter.
>
> Why not bind both regardless of the value of window-system?

Because 'S-<f10>' is problematic only on tty.

> (Btw, references to window-system the variable are deprecated; we
> should use the function instead.)

I noticed that since mouse.el is preloaded, 'window-system' is always nil.
So we need to use :filter anyway, with the '(window-system)' call.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79830: Context menu keys on tty
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 16 Nov 2025 06:02:02 +0000
Resent-Message-ID: <handler.79830.B79830.176327290115402 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79830
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: sbaugh@HIDDEN, 79830 <at> debbugs.gnu.org
Received: via spool by 79830-submit <at> debbugs.gnu.org id=B79830.176327290115402
          (code B ref 79830); Sun, 16 Nov 2025 06:02:02 +0000
Received: (at 79830) by debbugs.gnu.org; 16 Nov 2025 06:01:41 +0000
Received: from localhost ([127.0.0.1]:41093 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vKVpV-00040M-4G
	for submit <at> debbugs.gnu.org; Sun, 16 Nov 2025 01:01:41 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:39660)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vKVpS-00040A-7z
 for 79830 <at> debbugs.gnu.org; Sun, 16 Nov 2025 01:01:38 -0500
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 <eliz@HIDDEN>)
 id 1vKVpJ-0003uT-JU; Sun, 16 Nov 2025 01:01:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=NHvl/K4a6GGGrx9klaJhjLe45cp/dSIyU8ZrpdAIMbk=; b=GKeAdepRygt6
 P0B2SRNYfQdCIZq7NFlHc6SkxF89VJhnf7+OxTYRwBuNvOHoWvvB2uc76qqt1fdpcBw3sQ5/jxW3P
 j0t32i3wTrxXf5zjzOTYsAnt3C2yERy3zwE/6+Km/q8pFqjKJ3aBZqdCeK9BXIhSpGlR+95+vSDA+
 hhoFJmWQvW+qBodbB6Owzs0sdhb5DiHDa7lMYFx/Qy7IUuMxFGnBuvh62v8AgT790aGgh99DqIrvi
 rHIdNGLEC7OuKCPghM8/fAlyhs4jDagpEoKN0clSbUZJbViNvX6ORqEgMW7GhZD+xZlmnTItx6eMg
 u6zjMMsP+5KoAFW2NpEEDg==;
Date: Sun, 16 Nov 2025 08:01:24 +0200
Message-Id: <86o6p2ms7f.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87ecpzqdh5.fsf@HIDDEN> (message from Juri Linkov on
 Sat, 15 Nov 2025 21:53:42 +0200)
References: <87v7jdrv93.fsf@HIDDEN> <86ikfdqbpm.fsf@HIDDEN>
 <87ecpzqdh5.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: 79830 <at> debbugs.gnu.org,  sbaugh@HIDDEN
> Date: Sat, 15 Nov 2025 21:53:42 +0200
> 
> >> Since on many terminal emulators S-f10 is not available,
> >> here is a patch that binds it to C-f10 only on tty and context-menu-mode.
> >
> > Thanks, but shouldn't this binding be a global one, like S-f10?
> 
> By default 'C-<f10>' is bound to 'buffer-menu-open'.

So this binding will be lost on text terminals when context-menu-mode
is turned on?  I'm not sure we want this.  Should we consider
alternatives, like maybe M-<f10> or "C-x <f10>"?

> > (Btw, which terminal emulators intercept S-f10, and why?)
> 
> For example, MATE Terminal, and it can't be disabled.

If it's only MATE Terminal, perhaps we could reach out to it
developers and ask for an option to disable the interception?

> >> PS: not sure if it would be ok if Emacs started as daemon
> >> will bind 'C-f10' to the context menu, then emacsclient will
> >> still retain 'C-f10' on a graphical frame.  If this is a problem,
> >> then we could define the binding conditionally using :filter.
> >
> > Why not bind both regardless of the value of window-system?
> 
> Because 'S-<f10>' is problematic only on tty.

But testing the condition when the relevant code is evaluated is
problematic, because the same session can have frames of different
types, and because the condition's value when it is tested does not
necessarily tell us what will happen later in the actual use (think
daemon, for example).  So having both of the bindings available might
lower the probability of problems in this area, or even solve them
completely.

> > (Btw, references to window-system the variable are deprecated; we
> > should use the function instead.)
> 
> I noticed that since mouse.el is preloaded, 'window-system' is always nil.

You mean, _when_ mouse.el is preloaded?  Sure, that's one reason why
load-time test is a problem, see above.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79830: Context menu keys on tty
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 16 Nov 2025 07:45:03 +0000
Resent-Message-ID: <handler.79830.B79830.176327909632739 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79830
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: sbaugh@HIDDEN, 79830 <at> debbugs.gnu.org
Received: via spool by 79830-submit <at> debbugs.gnu.org id=B79830.176327909632739
          (code B ref 79830); Sun, 16 Nov 2025 07:45:03 +0000
Received: (at 79830) by debbugs.gnu.org; 16 Nov 2025 07:44:56 +0000
Received: from localhost ([127.0.0.1]:42014 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vKXRP-0008Vy-IS
	for submit <at> debbugs.gnu.org; Sun, 16 Nov 2025 02:44:55 -0500
Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:42140)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vKXRN-0008Ve-9V
 for 79830 <at> debbugs.gnu.org; Sun, 16 Nov 2025 02:44:53 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4d8NF60FWmz9tLj;
 Sun, 16 Nov 2025 08:44:42 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1763279082;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=JV+2/llWovjK6iG9qCRlKvC4tyE6Xe3A8nJFdPBrS7k=;
 b=CyT59mzKdnGN/gNe8jd4arz8DDh4bIxB1Ou6RwOx41GgNiCREY4TYdU5WweLHdkhiLFdJs
 NP85g+lC7MEBUeoyOg7Xk5wET6sl/rIw4biggyB6K6+mw1c0GgaiQjIcJqjGMKRMzBd6eB
 9nf3Yp1DXkL201z6bIIlW88qLFQK5zUYy4gBkTJXguzqBkqsjJHOJzad4gK3Awz7FWS5KF
 aDJSIu9mTSQsSQNN4RxdWL98VqGK13vsMoJq1xhIhF3+PsFrwxnWD0/oaE/lWkXgN4dJcG
 tTwuubIVnwxox6QhPH5497VTPzJ4kApxsV567UKEF6n0JtzVTNUy5f4lTmBYiA==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
In-Reply-To: <86o6p2ms7f.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87v7jdrv93.fsf@HIDDEN> <86ikfdqbpm.fsf@HIDDEN>
 <87ecpzqdh5.fsf@HIDDEN> <86o6p2ms7f.fsf@HIDDEN>
Date: Sun, 16 Nov 2025 09:16:25 +0200
Message-ID: <87v7jatqla.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Rspamd-Queue-Id: 4d8NF60FWmz9tLj
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> >> Since on many terminal emulators S-f10 is not available,
>> >> here is a patch that binds it to C-f10 only on tty and context-menu-mode.
>> >
>> > Thanks, but shouldn't this binding be a global one, like S-f10?
>> 
>> By default 'C-<f10>' is bound to 'buffer-menu-open'.
>
> So this binding will be lost on text terminals when context-menu-mode
> is turned on?  I'm not sure we want this.  Should we consider
> alternatives, like maybe M-<f10> or "C-x <f10>"?

This is the whole idea of this special mode to be able to
override the default keybindings.

>> > (Btw, which terminal emulators intercept S-f10, and why?)
>> 
>> For example, MATE Terminal, and it can't be disabled.
>
> If it's only MATE Terminal, perhaps we could reach out to it
> developers and ask for an option to disable the interception?

I don't remember if this problem exists on other terminals.
If no one provides the names of other terminal emulators
with the same problem, I'd rather retract this patch,
and only add a suggestion for rebinding customization
in the docstring:

diff --git a/lisp/mouse.el b/lisp/mouse.el
index f75800763e6..db6c394e6ce 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -696,7 +696,9 @@ context-menu-mode-map
       (define-key map [C-mouse-1] nil)
       (define-key map [C-down-mouse-1] context-menu-entry))
     map)
-  "Context Menu mode map.")
+  "Context Menu mode map.
+`S-f10' is intercepted by some terminal emulators.  So you can add
+a keybinding like `C-f10' to pop up the context menu on tty.")
 
 (define-minor-mode context-menu-mode
   "Toggle Context Menu mode.





Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Juri Linkov <juri@HIDDEN>
Subject: bug#79830: closed (Context menu keys on tty)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.79830.D79830.17636614136037.ackdone <at> debbugs.gnu.org>
References: <87jyzkh9ko.fsf@HIDDEN> <87v7jdrv93.fsf@HIDDEN>
X-Gnu-PR-Message: closed 79830
X-Gnu-PR-Package: emacs
Date: Thu, 20 Nov 2025 17:57:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1763661422-6063-0"

This is a multi-part message in MIME format...

------------=_1763661422-6063-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Thu, 20 Nov 2025 19:56:23 +0200
with message-id <87jyzkh9ko.fsf@HIDDEN>
and subject line Re: bug#79830: Context menu keys on tty
has caused the debbugs.gnu.org bug report #79830,
regarding Context menu keys on tty
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
79830: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79830
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1763661422-6063-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 14 Nov 2025 07:18:41 +0000
Received: from localhost ([127.0.0.1]:59737 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJo4v-0002GT-BN
	for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:18:41 -0500
Received: from lists.gnu.org ([2001:470:142::17]:41160)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vJo4t-0002GH-Qr
 for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:18:40 -0500
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 <juri@HIDDEN>) id 1vJo4W-0007gh-5f
 for bug-gnu-emacs@HIDDEN; Fri, 14 Nov 2025 02:18:21 -0500
Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1vJo4T-0002xN-PL
 for bug-gnu-emacs@HIDDEN; Fri, 14 Nov 2025 02:18:15 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4d77lC4hksz9t0n
 for <bug-gnu-emacs@HIDDEN>; Fri, 14 Nov 2025 08:17:59 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1763104679;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=ELcn3TPvZfc8JANbr5X/82y3YXwT6ZREAYsWtfRD318=;
 b=Sx7abAdlBYi5498W2PF2CjVtDkpv8WfBUmcsTidmXA/9WKLnvesT0tp0348bzsqYnzqUYb
 rM/YtWtPxXdcgNpmP6ZAjt93xkbGGiLPfsvw+LdKNK/UsnnlU5hWAvYSqkrUKGWb9n5uzg
 ee3l9bcyt7UqBqD5yIkPPSLSWB21qeHehm0rBqNZRS8q3Q+U6rj2SAMk60/WnBCBBZRPJD
 s4pgb5tMHYT0OrQPHJkh0R8kUfUmtI4dnNUWGkBjM3D3CiT1lbis2gDzfl+036+q+wWRS+
 EsHPOfWZYaVRwjY+p2KsEuBnrj6x0ETAhjs81C4IcGRzb7Nm25TcNLXpxzE8yA==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Context menu keys on tty
Organization: LINKOV.NET
X-Debbugs-Cc: Spencer Baugh <sbaugh@HIDDEN>
Date: Fri, 14 Nov 2025 09:07:52 +0200
Message-ID: <87v7jdrv93.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Rspamd-Queue-Id: 4d77lC4hksz9t0n
Received-SPF: pass client-ip=2001:67c:2050:0:465::103;
 envelope-from=juri@HIDDEN; helo=mout-p-103.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain

Since on many terminal emulators S-f10 is not available,
here is a patch that binds it to C-f10 only on tty and context-menu-mode.

PS: not sure if it would be ok if Emacs started as daemon
will bind 'C-f10' to the context menu, then emacsclient will
still retain 'C-f10' on a graphical frame.  If this is a problem,
then we could define the binding conditionally using :filter.


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=context-menu-mode-C-f10.patch

diff --git a/etc/NEWS b/etc/NEWS
index 35c536d6ee8..e645c7c2e72 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -297,6 +297,10 @@ to extend the boundaries of the active region by dragging the mouse pointer.
 The menu item enables sending current file(s) or region text to external
 (non-Emacs) applications or services.  See send-to.el for customisations.
 
+---
+*** In 'context-menu-mode' 'C-f10' pops up the context menu on tty.
+This is because 'S-f10' is often intercepted by the terminal emulator.
+
 ---
 *** The mouse now drags lines in character increments again.
 Dragging a horizontal or vertical line like the mode line or the lines
diff --git a/lisp/mouse.el b/lisp/mouse.el
index f75800763e6..5c28f6f05f9 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -690,6 +690,9 @@ context-menu-mode-map
     (define-key map [mouse-3] #'ignore)
     (define-key map [down-mouse-3] context-menu-entry)
     (define-key map [menu] #'context-menu-open)
+    ;; Use C-f10 since S-f10 is intercepted by many terminal emulators.
+    (unless window-system
+      (define-key map [C-f10] #'context-menu-open))
     (if (featurep 'w32)
         (define-key map [apps] #'context-menu-open))
     (when (featurep 'ns)

--=-=-=--



------------=_1763661422-6063-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 79830-done) by debbugs.gnu.org; 20 Nov 2025 17:56:53 +0000
Received: from localhost ([127.0.0.1]:49654 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vM8tp-0001ZH-GJ
	for submit <at> debbugs.gnu.org; Thu, 20 Nov 2025 12:56:53 -0500
Received: from mout-p-101.mailbox.org ([80.241.56.151]:36356)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vM8tm-0001Yt-CF
 for 79830-done <at> debbugs.gnu.org; Thu, 20 Nov 2025 12:56:51 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4dC5dQ3j3Sz9t7b;
 Thu, 20 Nov 2025 18:56:42 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1763661402;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=dEClo1LTPri4W3wsgLg2/Wr3x3GbiFW8l1oxjwU2n1Q=;
 b=yBGFu5WsuYrNVpXWenUQ4AmmPUfPCeRulUgtKe3qLj6ERAz6zLv54Oqp6R1/q4Z62Jfxq2
 ZVTDB/ycwnykkgRTkWMnyEDyHr6UkLtyM8QRRMEctzUaeqEUm0DSQ9ehadnJ95msKHcvcu
 mpuO8/WC835plZgWL4ej5sRjwqPyqNH+M74AFXvU/rqNVc1FLCpbwqEHyAf9jqXRA4rxWg
 SbeCC5K6oFteq8w1quG9ou3HgLXgo+jum9aZzHGtQBNmMcKnHMcyicV0Ta8HRD7eqzZLup
 v171kEia6rh4Jm8LocTpAWu5aNI8UbH6HQ2nI8uwiaDvzVIKd0lztmsXPk4j9A==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79830: Context menu keys on tty
In-Reply-To: <87v7jatqla.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87v7jdrv93.fsf@HIDDEN> <86ikfdqbpm.fsf@HIDDEN>
 <87ecpzqdh5.fsf@HIDDEN> <86o6p2ms7f.fsf@HIDDEN>
 <87v7jatqla.fsf@HIDDEN>
Date: Thu, 20 Nov 2025 19:56:23 +0200
Message-ID: <87jyzkh9ko.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Rspamd-Queue-Id: 4dC5dQ3j3Sz9t7b
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79830-done
Cc: sbaugh@HIDDEN, 79830-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> If it's only MATE Terminal, perhaps we could reach out to it
>> developers and ask for an option to disable the interception?
>
> I don't remember if this problem exists on other terminals.
> If no one provides the names of other terminal emulators
> with the same problem, I'd rather retract this patch,

Ok, since it's easy to customize the S-f10 key on tty,
I'm closing this report.


------------=_1763661422-6063-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Juri Linkov <juri@HIDDEN>
Subject: bug#79830: closed (Re: bug#79830: Context menu keys on tty)
Message-ID: <handler.79830.D79830.17636614136037.notifdone <at> debbugs.gnu.org>
References: <87jyzkh9ko.fsf@HIDDEN> <87v7jdrv93.fsf@HIDDEN>
X-Gnu-PR-Message: they-closed 79830
X-Gnu-PR-Package: emacs
Reply-To: 79830 <at> debbugs.gnu.org
Date: Thu, 20 Nov 2025 17:57:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1763661422-6063-1"

This is a multi-part message in MIME format...

------------=_1763661422-6063-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#79830: Context menu keys on tty

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 79830 <at> debbugs.gnu.org.

--=20
79830: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79830
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1763661422-6063-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 79830-done) by debbugs.gnu.org; 20 Nov 2025 17:56:53 +0000
Received: from localhost ([127.0.0.1]:49654 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vM8tp-0001ZH-GJ
	for submit <at> debbugs.gnu.org; Thu, 20 Nov 2025 12:56:53 -0500
Received: from mout-p-101.mailbox.org ([80.241.56.151]:36356)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vM8tm-0001Yt-CF
 for 79830-done <at> debbugs.gnu.org; Thu, 20 Nov 2025 12:56:51 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4dC5dQ3j3Sz9t7b;
 Thu, 20 Nov 2025 18:56:42 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1763661402;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=dEClo1LTPri4W3wsgLg2/Wr3x3GbiFW8l1oxjwU2n1Q=;
 b=yBGFu5WsuYrNVpXWenUQ4AmmPUfPCeRulUgtKe3qLj6ERAz6zLv54Oqp6R1/q4Z62Jfxq2
 ZVTDB/ycwnykkgRTkWMnyEDyHr6UkLtyM8QRRMEctzUaeqEUm0DSQ9ehadnJ95msKHcvcu
 mpuO8/WC835plZgWL4ej5sRjwqPyqNH+M74AFXvU/rqNVc1FLCpbwqEHyAf9jqXRA4rxWg
 SbeCC5K6oFteq8w1quG9ou3HgLXgo+jum9aZzHGtQBNmMcKnHMcyicV0Ta8HRD7eqzZLup
 v171kEia6rh4Jm8LocTpAWu5aNI8UbH6HQ2nI8uwiaDvzVIKd0lztmsXPk4j9A==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79830: Context menu keys on tty
In-Reply-To: <87v7jatqla.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87v7jdrv93.fsf@HIDDEN> <86ikfdqbpm.fsf@HIDDEN>
 <87ecpzqdh5.fsf@HIDDEN> <86o6p2ms7f.fsf@HIDDEN>
 <87v7jatqla.fsf@HIDDEN>
Date: Thu, 20 Nov 2025 19:56:23 +0200
Message-ID: <87jyzkh9ko.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Rspamd-Queue-Id: 4dC5dQ3j3Sz9t7b
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79830-done
Cc: sbaugh@HIDDEN, 79830-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> If it's only MATE Terminal, perhaps we could reach out to it
>> developers and ask for an option to disable the interception?
>
> I don't remember if this problem exists on other terminals.
> If no one provides the names of other terminal emulators
> with the same problem, I'd rather retract this patch,

Ok, since it's easy to customize the S-f10 key on tty,
I'm closing this report.


------------=_1763661422-6063-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 14 Nov 2025 07:18:41 +0000
Received: from localhost ([127.0.0.1]:59737 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJo4v-0002GT-BN
	for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:18:41 -0500
Received: from lists.gnu.org ([2001:470:142::17]:41160)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vJo4t-0002GH-Qr
 for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:18:40 -0500
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 <juri@HIDDEN>) id 1vJo4W-0007gh-5f
 for bug-gnu-emacs@HIDDEN; Fri, 14 Nov 2025 02:18:21 -0500
Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1vJo4T-0002xN-PL
 for bug-gnu-emacs@HIDDEN; Fri, 14 Nov 2025 02:18:15 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4d77lC4hksz9t0n
 for <bug-gnu-emacs@HIDDEN>; Fri, 14 Nov 2025 08:17:59 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1763104679;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=ELcn3TPvZfc8JANbr5X/82y3YXwT6ZREAYsWtfRD318=;
 b=Sx7abAdlBYi5498W2PF2CjVtDkpv8WfBUmcsTidmXA/9WKLnvesT0tp0348bzsqYnzqUYb
 rM/YtWtPxXdcgNpmP6ZAjt93xkbGGiLPfsvw+LdKNK/UsnnlU5hWAvYSqkrUKGWb9n5uzg
 ee3l9bcyt7UqBqD5yIkPPSLSWB21qeHehm0rBqNZRS8q3Q+U6rj2SAMk60/WnBCBBZRPJD
 s4pgb5tMHYT0OrQPHJkh0R8kUfUmtI4dnNUWGkBjM3D3CiT1lbis2gDzfl+036+q+wWRS+
 EsHPOfWZYaVRwjY+p2KsEuBnrj6x0ETAhjs81C4IcGRzb7Nm25TcNLXpxzE8yA==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Context menu keys on tty
Organization: LINKOV.NET
X-Debbugs-Cc: Spencer Baugh <sbaugh@HIDDEN>
Date: Fri, 14 Nov 2025 09:07:52 +0200
Message-ID: <87v7jdrv93.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Rspamd-Queue-Id: 4d77lC4hksz9t0n
Received-SPF: pass client-ip=2001:67c:2050:0:465::103;
 envelope-from=juri@HIDDEN; helo=mout-p-103.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain

Since on many terminal emulators S-f10 is not available,
here is a patch that binds it to C-f10 only on tty and context-menu-mode.

PS: not sure if it would be ok if Emacs started as daemon
will bind 'C-f10' to the context menu, then emacsclient will
still retain 'C-f10' on a graphical frame.  If this is a problem,
then we could define the binding conditionally using :filter.


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=context-menu-mode-C-f10.patch

diff --git a/etc/NEWS b/etc/NEWS
index 35c536d6ee8..e645c7c2e72 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -297,6 +297,10 @@ to extend the boundaries of the active region by dragging the mouse pointer.
 The menu item enables sending current file(s) or region text to external
 (non-Emacs) applications or services.  See send-to.el for customisations.
 
+---
+*** In 'context-menu-mode' 'C-f10' pops up the context menu on tty.
+This is because 'S-f10' is often intercepted by the terminal emulator.
+
 ---
 *** The mouse now drags lines in character increments again.
 Dragging a horizontal or vertical line like the mode line or the lines
diff --git a/lisp/mouse.el b/lisp/mouse.el
index f75800763e6..5c28f6f05f9 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -690,6 +690,9 @@ context-menu-mode-map
     (define-key map [mouse-3] #'ignore)
     (define-key map [down-mouse-3] context-menu-entry)
     (define-key map [menu] #'context-menu-open)
+    ;; Use C-f10 since S-f10 is intercepted by many terminal emulators.
+    (unless window-system
+      (define-key map [C-f10] #'context-menu-open))
     (if (featurep 'w32)
         (define-key map [apps] #'context-menu-open))
     (when (featurep 'ns)

--=-=-=--



------------=_1763661422-6063-1--



Last modified: Thu, 20 Nov 2025 18:00:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.