From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24596: 25.1; `f10' behavior Date: Mon, 3 Oct 2016 08:41:45 -0700 (PDT) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1475509422 30128 195.159.176.226 (3 Oct 2016 15:43:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2016 15:43:42 +0000 (UTC) To: 24596@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 17:43:37 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 1br5Og-00054e-87 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 17:43:18 +0200 Original-Received: from localhost ([::1]:37797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5Oe-00085l-Tm for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 11:43:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5OU-00083J-V9 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br5OQ-0007bA-OS for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5OQ-0007b2-L6 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1br5OQ-0001kZ-Gb for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2016 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14755093276611 (code B ref -1); Mon, 03 Oct 2016 15:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Oct 2016 15:42:07 +0000 Original-Received: from localhost ([127.0.0.1]:43135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br5NW-0001iZ-Mc for submit@debbugs.gnu.org; Mon, 03 Oct 2016 11:42:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br5NU-0001hu-Kt for submit@debbugs.gnu.org; Mon, 03 Oct 2016 11:42:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br5NO-000742-Ey for submit@debbugs.gnu.org; Mon, 03 Oct 2016 11:41:59 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5NO-00073V-Bp for submit@debbugs.gnu.org; Mon, 03 Oct 2016 11:41:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5NM-0007QH-1u for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:41:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br5NH-00070m-SB for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:41:55 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:46140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5NH-00070Q-HO for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:41:51 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u93FfoPB016311 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 3 Oct 2016 15:41:50 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u93FfnpY006667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 3 Oct 2016 15:41:49 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u93FflQt001214 for ; Mon, 3 Oct 2016 15:41:48 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:123959 Archived-At: `f10' used to just be bound to `tmm-menubar', for both TTY and graphic-display Emacs. Now it is bound to `menu-bar-open'. 1. User option `tty-menu-open-use-tmm' makes `f10' use `tmm-menubar' instead, but only on TTY. Why not also on graphic displays? Or why not have the option value let you choose: always `tmm-menubar', never `tmm-menubar', or `tmm-menubar only for TTY? (And of course rename it, if it is made to apply to more than TTYs.) 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')? 3. The doc string of `menu-bar-open' says nothing about the behavior. It says nothing about what it does or what keys you can use, etc. It should. Instead, it passes you off to commands `x-menu-bar-open', `w32-menu-bar-open', `popup-menu', and `tmm-menubar'. Are the keys you can use different for `x-menu-bar-open' and `w32-menu-bar-open'? The latter's doc tells you about keys you can use, but the former's doc says nothing about keys. Seems like the doc for `C-h k f10' should give you more info about the behavior, and the keys you can use for the default behavior (at least). 4. The doc in the Emacs manual (node Menu Bar) is not too bad. But AFAICT, `C-g' does NOT work (in MS Windows), as it says it does. It also says that you can cancel using `ESC ESC ESC'. But the doc of `w32-menu-bar-open' (correctly) says that a single `ESC' cancels. Dunno whether this is a doc bug or the behavior (on Windows) is bugged. 5. Overall, it looks a bit like someone wrote `menu-bar-open', `x-menu-bar-open', and `w32-menu-bar-open', and it was decided to replace `tmm-menubar' as the binding of `f10'. But I don't really see the advantage, especially considering the lack of good doc. In GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --without-dbus --without-compress-install CFLAGS=3D-static'