[Vim-latex-cvs] vimfiles/ftplugin/latex-suite compiler.vim,1.33,1.34
Brought to you by:
srinathava,
tmaas
From: <mi...@us...> - 2003-06-03 09:45:39
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv13579 Modified Files: compiler.vim Log Message: Bug: Srinath: but your patch makes impossible to distinguish between various extenstions of LaTeX files - .tex, .ltx and so on Solution: use not :r files for compiling but remove extension when dealing with quickfix window But with both versions I have serious bug: when walking with j, k and <cr> through list of errors I am getting message: PositionPreviewWindow: Line 62: E486: Pattern not found: ((f|[|])*myfile.tex Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** compiler.vim 3 Jun 2003 05:58:21 -0000 1.33 --- compiler.vim 3 Jun 2003 09:45:32 -0000 1.34 *************** *** 129,132 **** --- 129,133 ---- redraw! else + let mainfname = Tex_GetMainFileName() " if a makefile and no *.latexmain exists, just use the make utility " this also sets mainfname for the rest of the function *************** *** 145,150 **** " construct a main file. if mainfname == '' ! let mainfname = expand("%:t:r") ! endif exec 'make '.mainfname endif --- 146,150 ---- " construct a main file. if mainfname == '' ! let mainfname = expand("%:t") exec 'make '.mainfname endif *************** *** 159,170 **** cclose cwindow " if we moved to a different window, then it means we had some errors. ! if winnum != winnr() && glob(mainfname.'.log') != '' ! call UpdatePreviewWindow(mainfname) ! exe 'nnoremap <buffer> <silent> j j:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> k k:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> :call GotoErrorLocation("'.mainfname.'")<CR>' setlocal nowrap --- 159,172 ---- cclose cwindow + " remove extension from mainfname + let mfnlog = fnamemodify(mainfname, ":r") " if we moved to a different window, then it means we had some errors. ! if winnum != winnr() && glob(mfnlog.'.log') != '' ! call UpdatePreviewWindow(mfnlog) ! exe 'nnoremap <buffer> <silent> j j:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> k k:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> :call GotoErrorLocation("'.mfnlog.'")<CR>' setlocal nowrap *************** *** 172,176 **** " resize the window to just fit in with the number of lines. exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' ! call GotoErrorLocation(mainfname) endif --- 174,178 ---- " resize the window to just fit in with the number of lines. exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' ! call GotoErrorLocation(mfnlog) endif |