[Vim-latex-cvs] vimfiles/ftplugin tex_latexSuite.vim,1.1.1.1,1.2
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-01-17 09:09:48
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin In directory sc8-pr-cvs1:/tmp/cvs-serv11628 Modified Files: tex_latexSuite.vim Log Message: - In the initial way of calling latex-suite, main.vim and correspondingly every file through it would be source'd only once for every buffer. This means that if a file needs to be called every time a filetype event occurs (not just the first time), it wasn't possible. This limitation was making adding a feature such as updating the packages menu when we switch buffers very ugly to implement. Adopt a much more elegant apprach. Throw a LatexSuiteFileType event every time tex_latexSuite is sourced... This enables each component of latex-suite to function independently without having to depend of main.vim in the heavy manner they did previously. Components which need to be sourced only once will ignore this event. Components which need to set buffer local maps will catch this event and set the maps with some reinclusion avoiding logic... and so on and so forth... See the next few commits of main.vim, compiler.vim etc for details. Index: tex_latexSuite.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex_latexSuite.vim,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tex_latexSuite.vim 30 Apr 2002 00:03:13 -0000 1.1.1.1 --- tex_latexSuite.vim 17 Jan 2003 09:09:43 -0000 1.2 *************** *** 3,12 **** " Maintainer: Srinath Avadhanula " Email: sr...@fa... - " URL: - " Last Change: Fri Apr 12 09:00 PM 2002 PDT ! if exists('b:didLatexSuite') ! finish endif ! let b:didLatexSuite = 1 ! exec 'so '.expand('<sfile>:p:h').'/latex-suite/main.vim' --- 3,13 ---- " Maintainer: Srinath Avadhanula " Email: sr...@fa... ! if !exists('s:initLatexSuite') ! let s:initLatexSuite = 1 ! exec 'so '.expand('<sfile>:p:h').'/latex-suite/main.vim' ! ! silent! do LatexSuite User LatexSuiteInitPost endif ! ! silent! do LatexSuite User LatexSuiteFileType |