[EMAIL PROTECTED] wrote:

> The bug is the difference in behavior of combinations X-resouces +
> Background menu and X-resouces + Shell or Macro menu.
> The last works correctly: only one of bound macro is executed.
> The first is buggy: both function bound via X-resources and
> macro bound in menu are executed when the key is used!

At the time the Background menu was added, the accelerators defined
there were not seen at all.  Only in rather recent Open Motif versions
the accelerators are seen.  The Background menu is a rather special
thing.  Normally, there shouldn't be entry fields for defining key
bindings in the menu to give the impression the intention would be to
be able to define key bindings for it.  I suspect they are there
because this menu is simply a copy of the macro menu and the
implementator was too lazy to do the changes.

Btw, there is a bug report there already, but I doubt it is 'fixable'
from inside nedit other than to do an adapted Background menu
definition menu.  

http://sourceforge.net/tracker/index.php?func=detail&aid=1668273&group_id=11005&atid=111005

If one likes key bindings, one can simply add the macros to the macro
menu.  If one likes to show them in the Background menu, too, one
makes entries there containing just macro_menu_command("..."). 

Jörg
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to