all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Drop-down menus, popup menus, and popup dialogs supported on TTYs
Date: Wed, 9 Oct 2013 23:26:22 +0200	[thread overview]
Message-ID: <20131009212622.GC6733@boo.workgroup> (raw)
In-Reply-To: <8361t6qoxg.fsf@gnu.org>

Hi Eli, Emacs developers,
* Eli Zaretskii <eliz@gnu.org> [09. Oct. 2013]:
>> Date: Wed, 9 Oct 2013 19:56:47 +0200
>> From: Gregor Zattler <telegraph@gmx.net>
>> 
>> (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 "<f10>") 
>> 		    (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
-- 
 -... --- .-. . -.. ..--.. ...-.-



  reply	other threads:[~2013-10-09 21:26 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08 18:24 Drop-down menus, popup menus, and popup dialogs supported on TTYs Eli Zaretskii
2013-10-08 20:18 ` chad
2013-10-09  2:42   ` Eli Zaretskii
2013-10-09  4:32 ` Masatake YAMATO
2013-10-09 16:35   ` Eli Zaretskii
2013-10-09 17:07     ` Dani Moncayo
2013-10-09 17:46     ` David De La Harpe Golden
2013-10-09 17:56     ` Gregor Zattler
2013-10-09 18:28       ` Eli Zaretskii
2013-10-09 21:26         ` Gregor Zattler [this message]
2013-10-10  2:49           ` Eli Zaretskii
2013-10-10  8:33             ` Gregor Zattler
2013-10-10  9:01               ` Andreas Schwab
2013-10-09 18:12     ` Stefan Monnier
2013-10-09 19:03       ` Eli Zaretskii
2013-10-11 17:01         ` Dani Moncayo
2013-10-11 17:46           ` Eli Zaretskii
2013-10-11 17:56             ` Dani Moncayo
2013-10-11 18:23               ` Eli Zaretskii
2013-10-11 18:32                 ` Dani Moncayo
2013-10-12  0:49                   ` Masatake YAMATO
2013-10-12  7:24                     ` Eli Zaretskii
2013-10-12  9:34                       ` Dani Moncayo
2013-10-11 18:06           ` Masatake YAMATO

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131009212622.GC6733@boo.workgroup \
    --to=telegraph@gmx.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.