4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The spell popup menu uses ":amenu", triggering mappings. Other
12 PopupMenu autocommands are removed. (John Little)
13 Solution: Use ":anoremenu" and use an autocmd group.
14 Files: runtime/menu.vim
17 *** ../vim-7.0.105/runtime/menu.vim Tue Apr 18 00:06:31 2006
18 --- runtime/menu.vim Thu Sep 14 13:14:25 2006
21 " You can also use this as a start for your own set of menus.
23 " Maintainer: Bram Moolenaar <Bram@vim.org>
24 ! " Last Change: 2006 Apr 17
26 " Note that ":an" (short for ":anoremenu") is often used to make a menu work
27 " in all modes and avoid side effects from mappings defined by the user.
29 " You can also use this as a start for your own set of menus.
31 " Maintainer: Bram Moolenaar <Bram@vim.org>
32 ! " Last Change: 2006 Sep 14
34 " Note that ":an" (short for ":anoremenu") is often used to make a menu work
35 " in all modes and avoid side effects from mappings defined by the user.
39 if exists("s:changeitem") && s:changeitem != ''
43 + " Return quickly if spell checking is not enabled.
44 if !&spell || &spelllang == ''
52 ! exe 'amenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .')
53 \ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
57 let s:additem = 'add\ "' . escape(w, ' .') . '"\ to\ word\ list'
58 ! exe 'amenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
60 let s:ignoreitem = 'ignore\ "' . escape(w, ' .') . '"'
61 ! exe 'amenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
63 ! amenu 1.8 PopUp.-SpellSep- :
71 ! exe 'anoremenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .')
72 \ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
76 let s:additem = 'add\ "' . escape(w, ' .') . '"\ to\ word\ list'
77 ! exe 'anoremenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
79 let s:ignoreitem = 'ignore\ "' . escape(w, ' .') . '"'
80 ! exe 'anoremenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
82 ! anoremenu 1.8 PopUp.-SpellSep- :
91 ! au! MenuPopup * call <SID>SpellPopup()
94 " The GUI toolbar (for MS-Windows and GTK)
99 ! augroup SpellPopupMenu
100 ! au! MenuPopup * call <SID>SpellPopup()
104 " The GUI toolbar (for MS-Windows and GTK)
107 tmenu ToolBar.FindPrev Find Previous
108 tmenu ToolBar.Replace Find / Replace...
110 ! tmenu ToolBar.LoadSesn Chose a session to load
111 tmenu ToolBar.SaveSesn Save current session
112 ! tmenu ToolBar.RunScript Chose a Vim Script to run
113 tmenu ToolBar.Make Make current project (:make)
114 tmenu ToolBar.RunCtags Build tags in current directory tree (!ctags -R .)
115 tmenu ToolBar.TagJump Jump to tag under cursor
117 tmenu ToolBar.FindPrev Find Previous
118 tmenu ToolBar.Replace Find / Replace...
120 ! tmenu ToolBar.LoadSesn Choose a session to load
121 tmenu ToolBar.SaveSesn Save current session
122 ! tmenu ToolBar.RunScript Choose a Vim Script to run
123 tmenu ToolBar.Make Make current project (:make)
124 tmenu ToolBar.RunCtags Build tags in current directory tree (!ctags -R .)
125 tmenu ToolBar.TagJump Jump to tag under cursor
126 *** ../vim-7.0.105/src/version.c Thu Sep 14 11:27:12 2006
127 --- src/version.c Thu Sep 14 13:24:44 2006
131 { /* Add new patch number below this line */
137 BROTHER MAYNARD: Armaments Chapter Two Verses Nine to Twenty One.
138 ANOTHER MONK: And St. Attila raised his hand grenade up on high saying "O
139 Lord bless this thy hand grenade that with it thou mayest
140 blow thine enemies to tiny bits, in thy mercy. "and the Lord
141 did grin and people did feast upon the lambs and sloths and
142 carp and anchovies and orang-utans and breakfast cereals and
144 BROTHER MAYNARD: Skip a bit brother ...
145 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
147 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
148 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
149 \\\ download, build and distribute -- http://www.A-A-P.org ///
150 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///