[Vim-latex-devel] bug in launching the viewer on Mac OS X
Brought to you by:
srinathava,
tmaas
From: William (B.J.) S. O. <aet...@gm...> - 2009-02-17 23:22:18
|
I believe I have run into a bug in the Tex_ViewLaTeX function under Mac OS X. Each time Tex_ViewLaTeX() runs on a macunix system, it prepends an additional '-a ' to the s:viewer variable. If Tex_ViewLaTeX is called multiple times in a given session, (using '\lv', for example) it only successfully runs the viewer every other time it is called. This leads to Tex_PrintDebug() output along the lines of: comp : Tex_ViewLaTeX: execString = open -a /Applications/Skim.app thesis.pdf comp : Tex_ViewLaTeX: execString = open -a -a /Applications/Skim.app thesis.pdf comp : Tex_ViewLaTeX: execString = open -a -a -a /Applications/Skim.app thesis.pdf Attached is a patch I created as a workaround to this problem. The patch inserts a '-a ' in execString if s:viewer is nonempty, rather than modifying s:viewer each time Tex_ViewLaTeX() is called. This ensures that there is only ever a single '-a' in execString, if a viewer program is specified. I had this problem with latexSuite20060325, but it looks like it may still exist in the subversion trunk. -- ...................................................................... William (B.J.) Snow Orvis PGP Fingerprint: aet...@gm... E6DC E687 EBB7 E99C 1BCE http://ouroboros.homedns.org D04F 057B 0CD0 8A49 3E98 Random link: Electronic Frontier Foundation: http://www.eff.org |