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: Sat, 28 Aug 2010 11:41:01 +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



Jason Rumney skrev 2010-08-28 11.23:
Jan Djärv<address@hidden>  writes:

Juri Linkov skrev 2010-08-28 00.38:


What would be a good scheme for values of `key-accel'?
It could either specify the absolute position of the accelerator
in the menu label string (an integer value like `:key-accel 6'),
or the accelerator itself as a character (like `:key-accel ?A').

Why no just a text property on the character in question?

Defining menus is already complex enough as it is.


Sure, but putting in stuff like :key-accel makes translation harder and you have to add lisp and C code to handle it. Text properties exist now.

It is trivial to make a function that takes for example "_File" and turns this into a string with "File" and a text property on F.

        Jan D.



reply via email to

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