home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.106 < prev    next >
Encoding:
Internet Message Format  |  2006-09-13  |  5.0 KB

  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. +     " Return quickly if spell checking is not enabled.
  43.       if !&spell || &spelllang == ''
  44.         return
  45.       endif
  46. ***************
  47. *** 908,925 ****
  48.       let s:fromword = w
  49.       let pri = 1
  50.       for sug in s:suglist
  51. !       exe 'amenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .')
  52.           \ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
  53.         let pri += 1
  54.       endfor
  55.   
  56.       let s:additem = 'add\ "' . escape(w, ' .') . '"\ to\ word\ list'
  57. !     exe 'amenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
  58.   
  59.       let s:ignoreitem = 'ignore\ "' . escape(w, ' .') . '"'
  60. !     exe 'amenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
  61.   
  62. !     amenu 1.8 PopUp.-SpellSep- :
  63.         endif
  64.       endif
  65.     endfunc
  66. --- 910,927 ----
  67.       let s:fromword = w
  68.       let pri = 1
  69.       for sug in s:suglist
  70. !       exe 'anoremenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .')
  71.           \ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
  72.         let pri += 1
  73.       endfor
  74.   
  75.       let s:additem = 'add\ "' . escape(w, ' .') . '"\ to\ word\ list'
  76. !     exe 'anoremenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
  77.   
  78.       let s:ignoreitem = 'ignore\ "' . escape(w, ' .') . '"'
  79. !     exe 'anoremenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
  80.   
  81. !     anoremenu 1.8 PopUp.-SpellSep- :
  82.         endif
  83.       endif
  84.     endfunc
  85. ***************
  86. *** 938,944 ****
  87.       let s:changeitem = ''
  88.     endfun
  89.   
  90. !   au! MenuPopup * call <SID>SpellPopup()
  91.   endif
  92.   
  93.   " The GUI toolbar (for MS-Windows and GTK)
  94. --- 940,948 ----
  95.       let s:changeitem = ''
  96.     endfun
  97.   
  98. !   augroup SpellPopupMenu
  99. !     au! MenuPopup * call <SID>SpellPopup()
  100. !   augroup END
  101.   endif
  102.   
  103.   " The GUI toolbar (for MS-Windows and GTK)
  104. ***************
  105. *** 1013,1021 ****
  106.       tmenu ToolBar.FindPrev    Find Previous
  107.       tmenu ToolBar.Replace        Find / Replace...
  108.     endif
  109. !   tmenu ToolBar.LoadSesn    Chose a session to load
  110.     tmenu ToolBar.SaveSesn    Save current session
  111. !   tmenu ToolBar.RunScript    Chose a Vim Script to run
  112.     tmenu ToolBar.Make        Make current project (:make)
  113.     tmenu ToolBar.RunCtags    Build tags in current directory tree (!ctags -R .)
  114.     tmenu ToolBar.TagJump        Jump to tag under cursor
  115. --- 1017,1025 ----
  116.       tmenu ToolBar.FindPrev    Find Previous
  117.       tmenu ToolBar.Replace        Find / Replace...
  118.     endif
  119. !   tmenu ToolBar.LoadSesn    Choose a session to load
  120.     tmenu ToolBar.SaveSesn    Save current session
  121. !   tmenu ToolBar.RunScript    Choose a Vim Script to run
  122.     tmenu ToolBar.Make        Make current project (:make)
  123.     tmenu ToolBar.RunCtags    Build tags in current directory tree (!ctags -R .)
  124.     tmenu ToolBar.TagJump        Jump to tag under cursor
  125. *** ../vim-7.0.105/src/version.c    Thu Sep 14 11:27:12 2006
  126. --- src/version.c    Thu Sep 14 13:24:44 2006
  127. ***************
  128. *** 668,669 ****
  129. --- 668,671 ----
  130.   {   /* Add new patch number below this line */
  131. + /**/
  132. +     106,
  133.   /**/
  134.  
  135. -- 
  136. BROTHER MAYNARD: Armaments Chapter Two Verses Nine to Twenty One.
  137. ANOTHER MONK:    And St.  Attila raised his hand grenade up on high saying "O
  138.                  Lord bless this thy hand grenade that with it thou mayest
  139.                  blow thine enemies to tiny bits, in thy mercy. "and the Lord
  140.                  did grin and people did feast upon the lambs and sloths and
  141.                  carp and anchovies and orang-utans and breakfast cereals and
  142.                  fruit bats and...
  143. BROTHER MAYNARD: Skip a bit brother ...
  144.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  145.  
  146.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  147. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  148. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  149.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  150.