emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key bindings proposal


From: Jan Djärv
Subject: Re: Key bindings proposal
Date: Sun, 29 Aug 2010 14:24:18 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2



David Kastrup skrev 2010-08-29 13.58:
Jan Djärv<address@hidden>  writes:

29 aug 2010 kl. 01:16 skrev Juri Linkov<address@hidden>:

Keeping the accelerator indication in the string itself:
(define-key menu-bar-file-menu [exit-emacs]
  `(menu-item ,(purecopy "_Quit") save-buffers-kill-terminal
              :help ,(purecopy "Save unsaved buffers, then exit")))

Does this scheme allow to escape underscores (when _ should be part of
the menu item but not as an accelerator)?

Two underscores in a row translates to one in Gtk+.

In "___Ola", is the accelerator ?_ or ?O ?

It is ?O. AFAIK, it isn't possible to make _ an accelerator, i.e parse three underscores as _ + __. It is always taken to be __ + _.


        Jan D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]