From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24596: 25.1; `f10' behavior Date: Mon, 03 Oct 2016 20:23:16 +0300 Message-ID: <834m4tpcsb.fsf@gnu.org> References: <> <<838tu5pg0x.fsf@gnu.org>> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1475515472 30841 195.159.176.226 (3 Oct 2016 17:24:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2016 17:24:32 +0000 (UTC) Cc: 24596@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 19:24:28 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br6yK-0005JU-E9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 19:24:12 +0200 Original-Received: from localhost ([::1]:38317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br6yM-0008IK-2G for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 13:24:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br6yF-0008IF-Ez for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 13:24:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br6yA-0005cc-7F for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 13:24:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br6yA-0005cU-3g for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 13:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1br6y9-0006yE-UA for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 13:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2016 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24596-submit@debbugs.gnu.org id=B24596.147551541226731 (code B ref 24596); Mon, 03 Oct 2016 17:24:01 +0000 Original-Received: (at 24596) by debbugs.gnu.org; 3 Oct 2016 17:23:32 +0000 Original-Received: from localhost ([127.0.0.1]:43205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br6xf-0006x5-Py for submit@debbugs.gnu.org; Mon, 03 Oct 2016 13:23:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br6xe-0006wi-AK for 24596@debbugs.gnu.org; Mon, 03 Oct 2016 13:23:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br6xU-0005FK-Sn for 24596@debbugs.gnu.org; Mon, 03 Oct 2016 13:23:25 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br6xU-0005EA-QB; Mon, 03 Oct 2016 13:23:20 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1898 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1br6xT-0000iH-1y; Mon, 03 Oct 2016 13:23:19 -0400 In-reply-to: (message from Drew Adams on Mon, 3 Oct 2016 09:33:47 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123965 Archived-At: > Date: Mon, 3 Oct 2016 09:33:47 -0700 (PDT) > From: Drew Adams > Cc: 24596@debbugs.gnu.org > > > > 2. Why can you not exit `menu-bar-open' (with nil > > > `tty-menu-open-use-tmm')? Why is ESC the only way to cancel (at least > > > on MS Windows)? Why are not the canonical Emacs ways of canceling > > > implemented here (`C-g' and `ESC ESC ESC')? > > > > ESC ESC works for me on MS-Windows GUI frames. > > For me, with emacs -Q, a single ESC cancels. A second ESC acts as > a prefix key for the next key sequence. Sorry, I omitted a crucial detail: the number of ESC presses needed to exit the menu depends on whether you already dropped a menu or not. That is, if you press F10, then the down-arrow, to drop the File menu, you need 2 ESC: the first will pop down the menu, the second will exit the menu bar. But if you just press F10, or only type right-arrow or left-arrow after that, i.e. there's no menu dropped down, then just one ESC is enough. > > ESC ESC ESC and C-g > > work for me on TTY frames. C-g doesn't work on a GUI frame because > > the menu is controlled by Windows, not by Emacs, and Windows doesn't > > know about C-g. IOW, this is a limitation we can do very little > > about. > > OK. Then the fix is to fix the doc, which says something quite > different from what the behavior really is. I can only add a note there saying that with some toolkits the exact keys to exit the menu might be different. Any better ideas? > The part about `C-g' and `ESC ESC ESC' is wrong, for Windows. And if > `C-g' is Emacs only and `menu-bar-open' passes the behavior off to a > toolkit, then perhaps `C-g' is also incorrect for other toolkits/window > managers? I guess so, but I don't really know and have no way if verifying that. Help is welcome.