Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv373
Modified Files:
multicompile.vim compiler.vim
Log Message:
New: If we use :TTarget to set the target format to ps, then initially,
errors from the compilation to dvi would not be shown. Now if there
are errors in the latex compilation step, we stop the process and show
the errors.
Index: multicompile.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/multicompile.vim,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** multicompile.vim 3 Oct 2003 10:35:28 -0000 1.8
--- multicompile.vim 9 Oct 2003 21:53:47 -0000 1.9
***************
*** 45,53 ****
" If there are errors in any latex compilation step, immediately
! " return.
! let _a = @a
! redir @a | silent! clist | redir END
! let errlist = @a
! let @a = _a
if errlist =~ '\d\+\s\f\+:\d\+\serror'
--- 45,52 ----
" If there are errors in any latex compilation step, immediately
! " return. For now, do not bother with warnings because those might go
! " away after compiling again or after bibtex is run etc.
! let errlist = Tex_GetErrorList()
! call Tex_Debug("errors = [".errlist."]", "err")
if errlist =~ '\d\+\s\f\+:\d\+\serror'
Index: compiler.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** compiler.vim 9 Oct 2003 20:59:13 -0000 1.49
--- compiler.vim 9 Oct 2003 21:53:47 -0000 1.50
***************
*** 221,224 ****
--- 221,229 ----
endif
+ " If there are any errors, then break from the rest of the steps
+ if Tex_GetErrorList() != ''
+ break
+ endif
+
let i = i + 1
endwhile
|