Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv11190
Modified Files:
packages.vim
Log Message:
- Previously if a file which didn't have \usepackage{german} triggered
latex-suite and then the user opened a file which did have
\usepackage{german}, then b:Tex_SmartQuote* would not change. We want to
process the \usepackage lines for every file... A first pass at
implementing this.
Make Tex_pack_updateall() get called every time SetTeXOptions() is called
by catching the LatexSuiteInit event thrown by SetTeXOptions().
TODO: This makes things slow, because Tex_pack_updateall is kind of dumb
updating the menu list... Often times, multiple files in the same
vim session use the same main file. In this case, it doesn't make
sense to "uncheck" all the menus and recreate them again. I'll
optimize it later to use such information...
Index: packages.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** packages.vim 15 Jan 2003 02:53:34 -0000 1.23
--- packages.vim 16 Jan 2003 17:49:08 -0000 1.24
***************
*** 454,456 ****
--- 454,460 ----
endif
+ augroup LatexSuite
+ au LatexSuite User LatexSuiteInit call Tex_pack_updateall()
+ augroup END
+
" vim:fdm=marker:ts=4:sw=4:noet:ff=unix
|