From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.devel Subject: Re: Drop-down menus, popup menus, and popup dialogs supported on TTYs Date: Wed, 9 Oct 2013 23:26:22 +0200 Message-ID: <20131009212622.GC6733@boo.workgroup> References: <831u3vsjrf.fsf@gnu.org> <20131009.133242.7368376887673130.yamato@redhat.com> <83ob6yqu5k.fsf@gnu.org> <20131009175647.GA6733@boo.workgroup> <8361t6qoxg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1381354015 11931 80.91.229.3 (9 Oct 2013 21:26:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 21:26:55 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 09 23:26:57 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 1VU1HU-0007eD-1p for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2013 23:26:56 +0200 Original-Received: from localhost ([::1]:43987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU1HT-0003Y9-FD for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2013 17:26:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU1HL-0003Y2-M5 for emacs-devel@gnu.org; Wed, 09 Oct 2013 17:26:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VU1HF-00089T-Qs for emacs-devel@gnu.org; Wed, 09 Oct 2013 17:26:47 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:54412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU1HF-00089M-HJ for emacs-devel@gnu.org; Wed, 09 Oct 2013 17:26:41 -0400 Original-Received: from boo.workgroup ([87.187.140.172]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MYOCL-1VGWu10kBF-00V7yS for ; Wed, 09 Oct 2013 23:26:40 +0200 Original-Received: from grfz by boo.workgroup with local (Exim 4.80) (envelope-from ) id 1VU1H6-00089b-JZ; Wed, 09 Oct 2013 23:26:32 +0200 Mail-Followup-To: emacs-devel Content-Disposition: inline In-Reply-To: <8361t6qoxg.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V03:K0:oe7GAQ40gyJLFfRb8JWWsutqJV5rmZQkbWZ1Hb0U/tKvg+xtWE5 ahJAmYudQC0XQz06K1w9+WPMcGQgVvWMKdpKLp2OsEJTPpejZNWjubQT4ThAYhz2u2wLZvX bBrUOdpW9DLSfNmXl/YERZES2QvnmNjDYeO1hpENFSW258/CuimcgfVEYaF9Yt5J9RFAjfI adCV7ugWHyHBvUAtTd98Q== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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:164048 Archived-At: Hi Eli, Emacs developers, * Eli Zaretskii [09. Oct. 2013]: >> Date: Wed, 9 Oct 2013 19:56:47 +0200 >> From: Gregor Zattler >> >> (menu-bar-mode 0) >> (if (not (string-match "dumb" (getenv "TERM"))) > > Why do you need this test? I put it there because I also use my init.el for starting emacs from cron jobs and did nit want to interfere there. But now I realise that latest Emacs assumes TERM to be "dumb" if startet in a terminal like this: src/Emacs -Q -nw --debug-init (getenv "TERM") then returns "dumb". Is this a bug? Anyway: >> (global-set-key (kbd "") >> (lambda () >> "open/close menu-bar" >> (interactive) >> (if menu-bar-mode >> (menu-bar-mode 0) >> (progn (menu-bar-mode 1) (menu-bar-open)))))) >> >> It would be nice if something like this worked on TTYs with real menus. > > Doesn't it work with the current trunk? I see no reason that it > shouldn't. It's really nice! One remark I have is that hitting F10 should IMHO close the menu if no menu entry was selected up to this point. Instead one has to hit ESC (which is also fine but should not be the only way of leaving the menu). This is a real improvement especially for the menu of printing package. Another remark: The headings of the menus end in ">". First I thought this indicates that arrow right goes to the next menu, but there are no "<" signs. On the other hand menu entries which lead to sub menus also end in a ">" while here one has to hit "RETURN" in order to go to the sub menu. This is a bit confusing. Perhaps arrow right should also lead to the submenu? And finally: I did not find a way from the sub menu back to the main menu besides hitting arrow right (which goes to the next main menu) and then arrow left. Perhaps some lynx stype navigation would improve this? But these are minor nitpicks. The new menu on terminals is a great improvement. Actually I did not use the printing packages for its clumsy interface on terminals... I also tested it on the console. Works the same. Thank you very much, Gregor -- -... --- .-. . -.. ..--.. ...-.-