[Vim-latex-devel] Bug in packages.vim
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2002-12-22 11:23:17
|
Bug reports: Bug 1. ===== When <F5> is pressed on a line containing the word 'ifthen' (which latex-suite does not support) in the preamble, then I get the following errors: -----------------------------------%<----------------------------------- E15: Invalid expression: g:TeX_package_ifthen Error detected while processing function Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_PutPackage..Tex_pack_supp..Tex_pack_check..Tex_pack: line 57: E121: Undefined variable: g:p_list Error detected while processing function Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_PutPackage..Tex_pack_supp..Tex_pack_check..Tex_pack: line 57: E15: Invalid expression: GetListCount(g:p_list) Error detected while processing function Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_PutPackage..Tex_pack_updateall..Tex_pack_all..Tex_pack_check..Tex_pack: line 6: E121: Undefined variable: g:TeX_package_ifthen Error detected while processing function Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_PutPackage..Tex_pack_updateall..Tex_pack_all..Tex_pack_check..Tex_pack: line 6: E15: Invalid expression: g:TeX_package_ifthen Error detected while processing function Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_PutPackage..Tex_pack_updateall..Tex_pack_all..Tex_pack_check..Tex_pack: line 57: E121: Undefined variable: g:p_list Error detected while processing function Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_PutPackage..Tex_pack_updateall..Tex_pack_all..Tex_pack_check..Tex_pack: line 57: E15: Invalid expression: GetListCount(g:p_list) -----------------------------------%<----------------------------------- Just to ensure that these bugs did not occur because of the merge from the new b-newimaps branch, I checked with version 1.14 of packages.vim " Last Change: nie gru 08 05:00 2002 C That version also gives the same error. Bug 2. ===== When I press <F5> on a line containing the word SIunits, then it gets changed to: \usepackage[0]<++>{SIunits}<++> with the cursor after the 0. This bug was also reported by a latex-suite user only a few days ago. Bug 3 ===== Bug 2 also has a 'sub-bug'. My placeholder settings were ignored. If I choose something different from <+ and +>, they are ignored. The latest version on b-newpackages does not have this bug. That changes the lines to \usepackage{ifthen} and \usepackage[]<++>{SIunits}<++> respectively. It also respects the placeholder settings. Srinath |