Received: (at 79830-done) by debbugs.gnu.org; 20 Nov 2025 17:56:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 20 12:56:53 2025 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.
Juri Linkov <juri@HIDDEN>:Juri Linkov <juri@HIDDEN>:
Received: (at 79830) by debbugs.gnu.org; 16 Nov 2025 07:44:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 16 02:44:55 2025
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>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79830: Context menu keys on tty
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-Debbugs-Envelope-To: 79830
Cc: sbaugh@HIDDEN, 79830 <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 (-)
>> >> 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.
bug-gnu-emacs@HIDDEN:bug#79830; Package emacs.
Full text available.Received: (at 79830) by debbugs.gnu.org; 16 Nov 2025 06:01:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 16 01:01:41 2025 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> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87ecpzqdh5.fsf@HIDDEN> (message from Juri Linkov on Sat, 15 Nov 2025 21:53:42 +0200) Subject: Re: bug#79830: Context menu keys on tty References: <87v7jdrv93.fsf@HIDDEN> <86ikfdqbpm.fsf@HIDDEN> <87ecpzqdh5.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79830 Cc: sbaugh@HIDDEN, 79830 <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: -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.
bug-gnu-emacs@HIDDEN:bug#79830; Package emacs.
Full text available.Received: (at 79830) by debbugs.gnu.org; 15 Nov 2025 19:59:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 15 14:59:03 2025 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> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#79830: Context menu keys on tty 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-Debbugs-Envelope-To: 79830 Cc: sbaugh@HIDDEN, 79830 <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 (-) >> 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.
bug-gnu-emacs@HIDDEN:bug#79830; Package emacs.
Full text available.Received: (at 79830) by debbugs.gnu.org; 14 Nov 2025 08:07:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 14 03:07:29 2025 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> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87v7jdrv93.fsf@HIDDEN> (message from Juri Linkov on Fri, 14 Nov 2025 09:07:52 +0200) Subject: Re: bug#79830: Context menu keys on tty References: <87v7jdrv93.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79830 Cc: sbaugh@HIDDEN, 79830 <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: -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.)
bug-gnu-emacs@HIDDEN:bug#79830; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 14 Nov 2025 07:18:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 14 02:18:41 2025
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)
--=-=-=--
Juri Linkov <juri@HIDDEN>:sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN.
Full text available.sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN:bug#79830; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.