]> git.pld-linux.org Git - packages/vim.git/blob - 7.0.106
- new
[packages/vim.git] / 7.0.106
1 To: vim-dev@vim.org
2 Subject: Patch 7.0.106
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.0.106
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
15
16
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
19 ***************
20 *** 2,8 ****
21   " You can also use this as a start for your own set of menus.
22   "
23   " Maintainer: Bram Moolenaar <Bram@vim.org>
24 ! " Last Change:        2006 Apr 17
25   
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.
28 --- 2,8 ----
29   " You can also use this as a start for your own set of menus.
30   "
31   " Maintainer: Bram Moolenaar <Bram@vim.org>
32 ! " Last Change:        2006 Sep 14
33   
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.
36 ***************
37 *** 885,890 ****
38 --- 885,892 ----
39       if exists("s:changeitem") && s:changeitem != ''
40         call <SID>SpellDel()
41       endif
42
43 +     " Return quickly if spell checking is not enabled.
44       if !&spell || &spelllang == ''
45         return
46       endif
47 ***************
48 *** 908,925 ****
49         let s:fromword = w
50         let pri = 1
51         for sug in s:suglist
52 !         exe 'amenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .')
53                 \ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
54           let pri += 1
55         endfor
56   
57         let s:additem = 'add\ "' . escape(w, ' .') . '"\ to\ word\ list'
58 !       exe 'amenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
59   
60         let s:ignoreitem = 'ignore\ "' . escape(w, ' .') . '"'
61 !       exe 'amenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
62   
63 !       amenu 1.8 PopUp.-SpellSep- :
64         endif
65       endif
66     endfunc
67 --- 910,927 ----
68         let s:fromword = w
69         let pri = 1
70         for sug in s:suglist
71 !         exe 'anoremenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .')
72                 \ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
73           let pri += 1
74         endfor
75   
76         let s:additem = 'add\ "' . escape(w, ' .') . '"\ to\ word\ list'
77 !       exe 'anoremenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
78   
79         let s:ignoreitem = 'ignore\ "' . escape(w, ' .') . '"'
80 !       exe 'anoremenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
81   
82 !       anoremenu 1.8 PopUp.-SpellSep- :
83         endif
84       endif
85     endfunc
86 ***************
87 *** 938,944 ****
88       let s:changeitem = ''
89     endfun
90   
91 !   au! MenuPopup * call <SID>SpellPopup()
92   endif
93   
94   " The GUI toolbar (for MS-Windows and GTK)
95 --- 940,948 ----
96       let s:changeitem = ''
97     endfun
98   
99 !   augroup SpellPopupMenu
100 !     au! MenuPopup * call <SID>SpellPopup()
101 !   augroup END
102   endif
103   
104   " The GUI toolbar (for MS-Windows and GTK)
105 ***************
106 *** 1013,1021 ****
107       tmenu ToolBar.FindPrev    Find Previous
108       tmenu ToolBar.Replace             Find / Replace...
109     endif
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
116 --- 1017,1025 ----
117       tmenu ToolBar.FindPrev    Find Previous
118       tmenu ToolBar.Replace             Find / Replace...
119     endif
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
128 ***************
129 *** 668,669 ****
130 --- 668,671 ----
131   {   /* Add new patch number below this line */
132 + /**/
133 +     106,
134   /**/
135
136 -- 
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
143                  fruit bats and...
144 BROTHER MAYNARD: Skip a bit brother ...
145                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
146
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    ///
This page took 0.158415 seconds and 3 git commands to generate.