Update of /cvsroot/vim-latex/vimfiles/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv29222
Modified Files:
imaps.vim
Log Message:
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS: ----------------------------------------------------------------------
Unfortunately, have to repeat Tex_Debug* functions here in case this plugin
is used without latex-suite... Script bloat! Maybe when all of the imaps
bugs are removed (!) we can remove these functions...
Index: imaps.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** imaps.vim 31 Dec 2002 19:20:02 -0000 1.17
--- imaps.vim 3 Jan 2003 08:22:23 -0000 1.18
***************
*** 8,12 ****
" while preserving filetype indentation.
"
! " Last Change: Tue Dec 31 10:00 AM 2002 PST
"
" Documentation: {{{
--- 8,12 ----
" while preserving filetype indentation.
"
! " Last Change: Fri Jan 03 12:00 AM 2003 PST
"
" Documentation: {{{
***************
*** 276,280 ****
let marker = '<!---@#%_Start_Here_@#%----!>'
endif
- call Tex_Debug('marker = '.marker)
let markerLength = strlen(marker)
--- 276,279 ----
***************
*** 291,294 ****
--- 290,294 ----
" If there are no place holders, just return the text.
if textEnc !~ '\V'.phs.'\.\{-}'.phe
+ call IMAP_Debug('Not getting '.phs.' and '.phe.' in '.textEnc, 'imap')
return text
endif
***************
*** 602,605 ****
--- 602,607 ----
" Hash: Return a version of a string that can be used as part of a variable" {{{
" name.
+ " Converts every non alphanumeric characteer into _{ascii}_ where {ascii} is
+ " the ASCII code for that character...
fun! s:Hash(text)
return substitute(a:text, '\([^[:alnum:]]\)',
***************
*** 626,629 ****
--- 628,666 ----
endfun
" }}}
+ " IMAP_Debug: interface to Tex_Debug if available, otherwise emulate it {{{
+ " Description:
+ function! IMAP_Debug(string, pattern)
+ if exists('*Tex_Debug')
+ call Tex_Debug(a:string, a:pattern)
+ else
+ if !exists('s:debug_'.a:pattern)
+ let s:debug_{a:pattern} = a:string
+ else
+ let s:debug_{a:pattern} = s:debug_{a:pattern}.a:string
+ endif
+ endif
+ endfunction " }}}
+ " IMAP_DebugClear: interface to Tex_DebugClear if avaialable, otherwise emulate it {{{
+ " Description:
+ function! IMAP_DebugClear(pattern)
+ if exists('*Tex_DebugClear')
+ call Tex_DebugClear(a:pattern)
+ else
+ let s:debug_{a:pattern} = ''
+ endif
+ endfunction " }}}
+ " IMAP_DebugClear: interface to Tex_DebugClear if avaialable, otherwise emulate it {{{
+ " Description:
+ function! IMAP_DebugPrint(pattern)
+ if exists('*Tex_DebugPrint')
+ call Tex_DebugPrint(a:pattern)
+ else
+ if exists('s:debug_'.a:pattern)
+ let s:debug_{a:pattern} = ''
+ else
+ echo s:debug_{a:pattern}
+ endif
+ endif
+ endfunction " }}}
" ==============================================================================
|