On Wed 3-Sep-08 3:12pm -0600, Bram Moolenaar wrote: > Bill McCarthy wrote:
>> I noticed a global variable that doesn't appear to be >> intentionally set. The variable `cpo_save' undecorated and >> outside a function is implicitly global. >> >> Unfortunately `verbose let' does not reveal where it is set. >> I found three places - there could be more: >> >> vim72/ftplugin/hamster.vim >> vim72/ftplugin/vim.vim >> vim72/plugin/matchparen.vim >> >> The solution is to (1) prefix with `s:', (2) unlet, or (3) >> do both. > I'll fix vim.vim and matchparen.vim. Sorry I didn't notice this mistake > before. > > I'll leave hamster.vim to David. Thanks! Most scripts follow the same scheme, starting with let s:cpo_save = &cpo " adjust cpo and end with let &cpo = s:cpo_save unlet s:cpo_save Besides the 3 I mentioned, ftplugin/abaqus.vim fails to unlet s:cpo_save A very minor oversight. -- Best regards, Bill --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---