[Vim-latex-cvs] vimfiles/ftplugin/latex-suite main.vim,1.62,1.63
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2004-05-22 01:24:23
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2368 Modified Files: main.vim Log Message: New: Tex_GetVarValue now doesn't accept a second argument as the default but just returns '' if no variable with the name exists. This means that factory defaults for all variables _have_ to be provided in texrc henceforth. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** main.vim 11 Feb 2004 10:04:06 -0000 1.62 --- main.vim 22 May 2004 01:24:14 -0000 1.63 *************** *** 396,402 **** " Description: " See if a window-local, buffer-local or global variable with the given name ! " exists and if so, returns the corresponding value. Otherwise return the ! " provided default value. ! function! Tex_GetVarValue(varname, default) if exists('w:'.a:varname) return w:{a:varname} --- 396,402 ---- " Description: " See if a window-local, buffer-local or global variable with the given name ! " exists and if so, returns the corresponding value. If none exist, return ! " an empty string. ! function! Tex_GetVarValue(varname) if exists('w:'.a:varname) return w:{a:varname} *************** *** 406,410 **** return g:{a:varname} else ! return a:default endif endfunction " }}} --- 406,410 ---- return g:{a:varname} else ! return '' endif endfunction " }}} *************** *** 433,438 **** " If the user wants to use his own way to specify the main file name, then " use it straight away. ! if Tex_GetVarValue('Tex_MainFileExpression', '') != '' ! exec 'let retval = '.Tex_GetVarValue('Tex_MainFileExpression', '') return retval endif --- 433,438 ---- " If the user wants to use his own way to specify the main file name, then " use it straight away. ! if Tex_GetVarValue('Tex_MainFileExpression') != '' ! exec 'let retval = '.Tex_GetVarValue('Tex_MainFileExpression') return retval endif *************** *** 592,597 **** \ . pattern.' : '.a:str."\n" ! if Tex_GetVarValue('Tex_DebugLog', '') != '' ! exec 'redir! >> '.Tex_GetVarValue('Tex_DebugLog', '') silent! echo pattern.' : '.a:str redir END --- 592,597 ---- \ . pattern.' : '.a:str."\n" ! if Tex_GetVarValue('Tex_DebugLog') != '' ! exec 'redir! >> '.Tex_GetVarValue('Tex_DebugLog') silent! echo pattern.' : '.a:str redir END |