[Vim-latex-devel] Re: BUG on windows
Brought to you by:
srinathava,
tmaas
From: Alex J. <Ale...@ke...> - 2003-12-04 16:28:18
|
Hello Alex, There're only two files where change was actually necessary (so far). They are compiler.vim, and main.vim. The files are attached. They are from 20031202 snapshot and contains changes related to this bug. Thursday, December 4, 2003, 6:06:29 PM, you wrote: AJ> Hello all. AJ> I've found a bug in last release that happens on windows systems. AJ> function Tex_GetMainFileName, when returning file name, escapes AJ> spaces. I don't know, maybe this is a good idea on *nix systems, but AJ> on windows this works only inside vim. AJ> If You want to pass a filename with spaces to external application, AJ> You have to put that file name in "", not escaping spaces with AJ> something. AJ> This error appears, for example, when You have spaces somewhere in AJ> the full name of file, and use *.latexmain, if you try to view the AJ> dvi in yap with \lv or \ls. AJ> So there're two things to fix: AJ> 1) First, main.vim, line 458: AJ> return escape(lheadfile, ' ') AJ> I've changed it to AJ> if has('win32') AJ> " Escaping spaces is not a good thing to do in Windows outside VIM !!! AJ> return lheadfile AJ> else AJ> return escape(lheadfile, ' ') AJ> endif AJ> 2) Then, here comes *allū places where the result of AJ> Tex_GetMainFileName is used. For example, compiler.vim, line 269: AJ> let execString = '!start '.s:viewer.' '.mainfname.'.'.s:target AJ> may be changed to AJ> let execString = '!start '.s:viewer.' "'.mainfname.'.'.s:target.'"' AJ> Best regards, AJ> Alex J. AJ> --------------------------------------- AJ> Alex Jakushev, ( mailto:Ale...@ke... ) AJ> Programmer, AJ> "KEMEK Elektronika" UAB ( http://www.kemek.lt ) AJ> member of VAROS GROUP ( http://www.varosgroup.com ) AJ> Work : +370 5 2491024 AJ> Fax : +370 5 2491019 AJ> Mob. : +370 685 44885 AJ> ICQ : 81495642 Best regards, Alex mailto:Ale...@ke... --------------------------------------- Alex Jakushev, ( mailto:Ale...@ke... ) Programmer, "KEMEK Elektronika" UAB ( http://www.kemek.lt ) member of VAROS GROUP ( http://www.varosgroup.com ) Work : +370 5 2491024 Fax : +370 5 2491019 Mob. : +370 685 44885 ICQ : 81495642 |