[Top][All Lists]

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

Re: key binding of `M-&' shows up in menu as (M-)

From: Lennart Borgman (gmail)
Subject: Re: key binding of `M-&' shows up in menu as (M-)
Date: Sun, 17 Jun 2007 15:32:18 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070604 Thunderbird/ Mnenhy/

Eli Zaretskii wrote:
Date: Fri, 15 Jun 2007 21:43:08 +0200
From: "Lennart Borgman (gmail)" <address@hidden>
Cc: Emacs-Pretest-Bug <address@hidden>

Drew Adams wrote:
I think this is specific to w32. Yes & needs to be escaped there.
I hope you mean that Emacs or Emacs W32 should do the escaping. These
binding indications are added automatically.
I am not sure I understand you, but & is the character you put before a character in the menu string on w32 to mark that character as an accelerator in menu. (It will be shown underlined then.)

An example: "&Help" will show "Help" in the menu with "H" underlined.

So fixing this is a w32 specific problem.

I think I fixed this in CVS (trunk and branch); please try.

Btw, there's a much easier way to demonstrate the bug: just create a
buffer called, say, "foo&bar", then click "Buffers" from the menu bar.

Unfortunately I do not think that is the right change. This totally spoils the possibility to use accelerators for the menus on w32. I do not think the minor problem it solves justifies that.

I think the change should be reverted and added back later when it is clear how menu accelerators should be supported in Emacs.

Maybe this is the time to add a new field to _widget_value for this? The reasonable value is in my opinion the position for the accelerator within *name.

Then of course something with a name like :accpos could be added for use with (menu-item ...) when definining menus.

reply via email to

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