Hi Bram,

Here's a small patch provided by Liang Peng, alias Bezetek James.  He
has fixed the problem in menu/unmenu/emenu series commands.

As my understanding, "emenu" is designed for scripts to access some
menu items.  However, "emenu" only accepts the localized menu names.
For example, you can use your script to add a new menu item by calling
"amenu File.Test :echo 'hello'<CR>", but you can't execute the same
menu item by calling "emenu File.Test" if you are not running Vim in
English mode.  Instead, you have to use localized menu name for
"File".  However, we don't have any interface to access the menu
translation table via script.  So "emenu" command is nearly useless
for script writers.

Bezetek's patch makes menu/unmenu/emenu useful again.  He modified the
menu structure to store the original strings before the localization,
and accepts the unlocalized strings for all the menu series commands
when calling all menu related command.  To keep the compatibility,
localized menu names are also accepted, just like the behavior before.

This is his first patch to Vim, and he's quite eager to participate in
open source projects.  Please help review his patch and include it in
the next release of Vim.  Many thanks!


Regards,


Edward Fox

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Attachment: emenu.patch
Description: Binary data

Raspunde prin e-mail lui