This is a good fix. I recommend you resubmit it with [PATCH]
in the subject so that someone with commit access can get into into SVN. Locally, I've patched my Vim-LaTeX to have a "Tex_TreatMacViewerAsUNIX" variable that I turn on. That lets me avoid "open" entirely. This is convenient as it lets me do forward searching. Forward searching is supported in Skim via an AppleScript call (which can be put inside a command line script that exec's osascript). --Ted On 2/17/09 5:24 PM, William (B.J.) Snow Orvis wrote: > 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. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > > > ------------------------------------------------------------------------ > > _______________________________________________ > Vim-latex-devel mailing list > Vim-latex-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel -- Ted Pavlic <t...@tedpavlic.com> Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel