From 218c5378c8811b2b65dfa2385ffbfa419f7f10fd Mon Sep 17 00:00:00 2001 From: Srinath Avadhanula Date: Sun, 5 Jan 2003 08:46:52 +0000 Subject: [PATCH] Bug: More debugging the debug functions! Ahh... The irony. The Tex_PrintDebug() function wasn't working well. Cause/Solution: used a:pattern instead of pattern Bug: Refer to 1.17 of envmacros.vim Solution: Used the Tex_SetFastEnvironmentMaps() from envmacros.vim in order to set buffer local mappings for the and keys for every tex file opened. --- ftplugin/latex-suite/main.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ftplugin/latex-suite/main.vim b/ftplugin/latex-suite/main.vim index f5d18aa..7eb6617 100755 --- a/ftplugin/latex-suite/main.vim +++ b/ftplugin/latex-suite/main.vim @@ -3,7 +3,7 @@ " Maintainer: Srinath Avadhanula " Email: srinath@fastmail.fm " URL: -" Last Change: Fri Jan 03 04:00 PM 2003 PST +" Last Change: Sun Jan 05 12:00 AM 2003 PST " " Help: " Changes: {{{ @@ -450,7 +450,7 @@ function! Tex_PrintDebug(...) let pattern = '' endif if exists('s:debugString_'.pattern) - echo s:debugString_{a:pattern} + echo s:debugString_{pattern} endif endfunction " }}} " Tex_ClearDebug: clears the s:debugString string {{{ @@ -509,6 +509,11 @@ function! SetTeXOptions() if g:Tex_SmartKeyDot inoremap . =SmartDots() endif + call Tex_Debug('checking to see if Tex_SetFastEnvironmentMaps needs to be called.', 'main') + if g:Tex_PromptedEnvironments != '' || g:Tex_HotKeyMappings != '' + call Tex_Debug('calling Tex_SetFastEnvironmentMaps', 'main') + call Tex_SetFastEnvironmentMaps() + endif " viewing/searching if !hasmapto('RunLaTeX')