Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19735
Modified Files:
compiler.vim
Log Message:
Bug: Sometimes, even if there are errors in compiling the .tex file,
Tex_RunLaTeX proceeds to convert to ps, etc.
Why: The pattern used to check whether there is an error lin the :clist is
very restrictive. If there are errors which do not have an associated
line number, then the pattern doesn't match and we fail to detect that
there is an error.
Fix: Just use very simple patterns.
Index: compiler.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** compiler.vim 4 Mar 2004 06:15:25 -0000 1.61
--- compiler.vim 14 May 2004 17:37:29 -0000 1.62
***************
*** 223,228 ****
endif
" If there are any errors, then break from the rest of the steps
! if Tex_GetErrorList() =~ '\v:\d+ (error|warning):'
call Tex_Debug('There were errors in compiling, breaking chain...', 'comp')
break
--- 223,231 ----
endif
+ let errlist = Tex_GetErrorList()
+ call Tex_Debug("Tex_RunLaTeX: errlist = [".errlist."]", "comp")
+
" If there are any errors, then break from the rest of the steps
! if errlist =~ '\v(error|warning)'
call Tex_Debug('There were errors in compiling, breaking chain...', 'comp')
break
***************
*** 502,508 ****
" away after compiling again or after bibtex is run etc.
let errlist = Tex_GetErrorList()
! call Tex_Debug("errors = [".errlist."]", "comp")
! if errlist =~ '\d\+\s\f\+:\d\+\serror'
let g:Tex_IgnoredWarnings = origpats
exec 'TCLevel '.origlevel
--- 505,511 ----
" away after compiling again or after bibtex is run etc.
let errlist = Tex_GetErrorList()
! call Tex_Debug("Tex_CompileMultipleTimes: errors = [".errlist."]", "comp")
! if errlist =~ 'error'
let g:Tex_IgnoredWarnings = origpats
exec 'TCLevel '.origlevel
|