From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Input for TTY menus Date: Fri, 18 Oct 2013 16:04:54 -0400 Message-ID: References: <831u4llymo.fsf@gnu.org> <83r4bjoq33.fsf@gnu.org> <83bo2nnkel.fsf@gnu.org> <5F73A0A0-033A-40C2-8B15-AF5AFCBB944B@mit.edu> <83li1qmoog.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382126714 27345 80.91.229.3 (18 Oct 2013 20:05:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 20:05:14 +0000 (UTC) Cc: chad , darren.hoo@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 22:05:17 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VXGIO-0004wD-43 for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 22:05:16 +0200 Original-Received: from localhost ([::1]:59245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXGIN-00034t-Jr for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 16:05:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXGIE-00031p-G0 for emacs-devel@gnu.org; Fri, 18 Oct 2013 16:05:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXGI6-00029i-32 for emacs-devel@gnu.org; Fri, 18 Oct 2013 16:05:06 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXGI5-00029c-Uh; Fri, 18 Oct 2013 16:04:58 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r9IK4tlL007303; Fri, 18 Oct 2013 16:04:55 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id DDD9BB4162; Fri, 18 Oct 2013 16:04:54 -0400 (EDT) In-Reply-To: <83li1qmoog.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Oct 2013 21:14:39 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4735=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4735> : inlines <156> : streams <1058209> : uri <1569426> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164329 Archived-At: >> Both gui and terminal emacs under NS have a services menu, but only >> the gui NS emacs is correctly populating it from the system. It >> seems to be created in nsterm.m:ns_term_init() when the application >> menu is created (look for svcsMenu). >> > Also, if you invoke tmm-menubar with M-`, does the Services item >> > appear there, and if so, can it be selected and used as you'd expect? >> It tmm-menu does have a Services item, and it's empty there also. > Thanks for explaining and for testing. It sounds like there's a bug in the NS code: the menu should probably either not exist under a tty, or be filled with appropriate elements. >> At a guess, the NS port is creating a stub for the menubar, and >> then moving it into the application menu in some NS gui-only code. > I see something in nsfns.m. Perhaps some NS person could look into > fixing this. But the tty-menu code should also correctly handle an empty menu. E.g. if I do: emacs -Q -nw M-: (global-set-key [menu-bar test] '(menu-item "Test" (keymap "Test"))) RET f10 then f10 just tells me "Empty menu" and doesn't let me move to another menu. Stefan