[Vim-latex-cvs] vimfiles/compiler tex.vim,1.5,1.6
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-07-24 02:52:38
|
Update of /cvsroot/vim-latex/vimfiles/compiler In directory sc8-pr-cvs1:/tmp/cvs-serv18436 Modified Files: tex.vim Log Message: Bug: Pan Shizhu writes: You defined a character which looks like a reversed `!' as the delimeter of global var g:Tex_IgnoredWarnings, but this character will definetely cause problem on many systems (mainly non-latin systems such as Chinese, Japanese and Korean). Fix: Replace the inverted '!' with "\n". This might cause some backwards compatibility problems. Index: tex.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/compiler/tex.vim,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tex.vim 6 Dec 2002 09:48:22 -0000 1.5 --- tex.vim 24 Jul 2003 02:52:35 -0000 1.6 *************** *** 3,7 **** " Original Author: Artem Chuprina <ra...@ra...> " Customization: Srinath Avadhanula <sr...@fa...> ! " Last Change: Fri Dec 06 01:00 AM 2002 PST " Description: {{{ " This file sets the 'makeprg' and 'errorformat' options for the LaTeX --- 3,7 ---- " Original Author: Artem Chuprina <ra...@ra...> " Customization: Srinath Avadhanula <sr...@fa...> ! " CVS: $Id$ " Description: {{{ " This file sets the 'makeprg' and 'errorformat' options for the LaTeX *************** *** 76,89 **** if !exists('g:Tex_IgnoredWarnings') let g:Tex_IgnoredWarnings = ! \'Underfull¡'. ! \'Overfull¡'. ! \'specifier changed to¡'. ! \'You have requested¡'. ! \'Missing number, treated as zero.' endif " This is the number of warnings in the g:Tex_IgnoredWarnings string which " will be ignored. if !exists('g:Tex_IgnoreLevel') ! let g:Tex_IgnoreLevel = 4 endif " There will be lots of stuff in a typical compiler output which will --- 76,91 ---- if !exists('g:Tex_IgnoredWarnings') let g:Tex_IgnoredWarnings = ! \'Underfull'."\n". ! \'Overfull'."\n". ! \'specifier changed to'."\n". ! \'You have requested'."\n". ! \'Missing number, treated as zero.'."\n". ! \'There were undefined references'."\n". ! \'Citation %.%# undefined' endif " This is the number of warnings in the g:Tex_IgnoredWarnings string which " will be ignored. if !exists('g:Tex_IgnoreLevel') ! let g:Tex_IgnoreLevel = 7 endif " There will be lots of stuff in a typical compiler output which will *************** *** 172,183 **** " ============================================================================== " Functions for setting up a customized 'efm' {{{ ! " " IgnoreWarnings: parses g:Tex_IgnoredWarnings for message customization {{{ " Description: function! <SID>IgnoreWarnings() let i = 1 ! while s:Strntok(g:Tex_IgnoredWarnings, '¡', i) != '' && \ i <= g:Tex_IgnoreLevel ! let warningPat = s:Strntok(g:Tex_IgnoredWarnings, '¡', i) let warningPat = escape(substitute(warningPat, '[\,]', '%\\\\&', 'g'), ' ') exe 'setlocal efm+=%-G%.%#'.warningPat.'%.%#' --- 174,185 ---- " ============================================================================== " Functions for setting up a customized 'efm' {{{ ! " IgnoreWarnings: parses g:Tex_IgnoredWarnings for message customization {{{ " Description: function! <SID>IgnoreWarnings() let i = 1 ! while s:Strntok(g:Tex_IgnoredWarnings, "\n", i) != '' && \ i <= g:Tex_IgnoreLevel ! let warningPat = s:Strntok(g:Tex_IgnoredWarnings, "\n", i) let warningPat = escape(substitute(warningPat, '[\,]', '%\\\\&', 'g'), ' ') exe 'setlocal efm+=%-G%.%#'.warningPat.'%.%#' *************** *** 250,268 **** " }}} " SetTexCompilerLevel: sets the "level" for the latex compiler {{{ ! function! <SID>SetTexCompilerLevel(level) ! if a:level == 'strict' let g:Tex_ShowallLines = 1 ! elseif a:level =~ '^\d\+$' let g:Tex_ShowallLines = 0 ! let g:Tex_IgnoreLevel = a:level else ! echoerr "SetTexCompilerLevel: Unkwown option [".a:level."]" end call s:SetLatexEfm() endfunction ! com! -nargs=1 TCLevel :call <SID>SetTexCompilerLevel(<f-args>) " }}} ! " " }}} " ============================================================================== --- 252,281 ---- " }}} " SetTexCompilerLevel: sets the "level" for the latex compiler {{{ ! function! <SID>SetTexCompilerLevel(...) ! if a:0 > 0 ! let level = a:1 ! else ! call Tex_ResetIncrementNumber(0) ! echo substitute(g:Tex_IgnoredWarnings, ! \ '^\|\n\zs\S', '\=Tex_IncrementNumber(1)." ".submatch(0)', 'g') ! let level = input("\nChoose an ignore level: ") ! if level == '' ! return ! endif ! endif ! if level == 'strict' let g:Tex_ShowallLines = 1 ! elseif level =~ '^\d\+$' let g:Tex_ShowallLines = 0 ! let g:Tex_IgnoreLevel = level else ! echoerr "SetTexCompilerLevel: Unkwown option [".level."]" end call s:SetLatexEfm() endfunction ! com! -nargs=? TCLevel :call <SID>SetTexCompilerLevel(<f-args>) " }}} ! " }}} " ============================================================================== |