From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49315 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: t-vim failed under windows Date: Fri, 10 Apr 2009 10:22:01 -0400 (EDT) Message-ID: References: <000001c9b9e4$96d39320$56e0a8c0@tea.state.tx.us> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239373400 9130 80.91.229.12 (10 Apr 2009 14:23:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 14:23:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 10 16:24:39 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LsHep-0005kC-JR for gctc-ntg-context-518@m.gmane.org; Fri, 10 Apr 2009 16:24:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 16E381FC6A; Fri, 10 Apr 2009 16:23:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15102-05; Fri, 10 Apr 2009 16:22:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C012A1FC6F; Fri, 10 Apr 2009 16:22:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 672191FC6F for ; Fri, 10 Apr 2009 16:22:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15776-04 for ; Fri, 10 Apr 2009 16:22:25 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 993B11FC6A for ; Fri, 10 Apr 2009 16:22:25 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3AEMLck006087 for ; Fri, 10 Apr 2009 16:22:23 +0200 Original-Received: FROM [192.168.2.8] (c-76-127-178-8.hsd1.ct.comcast.net [76.127.178.8]) BY skycaptain.mr.itd.umich.edu ID 49DF561C.32D74.22559 ; 10 Apr 2009 10:22:20 -0400 In-Reply-To: <000001c9b9e4$96d39320$56e0a8c0@tea.state.tx.us> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.160; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 207051122 - bbfc9a1095cd - 20090410 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49315 Archived-At: On Fri, 10 Apr 2009, Andy wrote: >> Does >> >> mtxrun --verbose --noquotes bin:vim "-u NONE" >> >> work correctly on windows? > > Yes. > >> What about if you run "texexec --lua" instead of "context" (with noquote >> changed to noquotes in t-vim.tex)? > > Same problem. The log shows: > > MTXrun | > MTXrun | executing: vim "-u NONE -e -C -n -c set" "tabstop=8 -c syntax" "on > -c set" "syntax=c -c let" "contextstartline=1 -c let" "contextstopline=0 -c > source" "c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c > wqa vimdemo-vimsyntax.tmp " > MTXrun | > MTXrun | > > You can see from above that the argument of vim command -c is not correctly > quoted. As mentioned in my last email, the \runvimsyntax generates an > incorrect vim command. For example, we expect the line in \runvimsyntax The generated command is correct. mtxrun messes up the quotes. > -c \shellescapedquote syntax on\shellescapedquote\space > > Will be: -c "syntax on" in the vim command line. However, the log shows it > become to: -c syntax " " on. I think that is one problem cause the failure. > > I also tried type the command manually: > > vim -u None -e -C -n -c "set tabstop=8" -c "syntax on" -c "set syntax=c" -c > "let contextstartline=1" -c "let contextstopline=0" -c "source > c:/context/tex/texmf-context/tex/context/third/vim/2context.vim" -c "wqa" > "vimdemo-vimsyntax.tmp" > > > It works. File named "vimdemo-vimsyntax.tmp-vimsyntax.tmp" generated. Next > time run texexec will get the correct pdf output. > > Another found is if tried mtxrun as: > > mtxrun --verbose --noquotes bin:vim "-u None -e -C -n -V10log -c \"set > tabstop=8\" -c \"syntax on\" -c \"set syntax=c\" -c \"let > contextstartline=1\" -c \"let contextstopline=0\" -c \"source > c:/context/tex/texmf-context/tex/context/third/vim/2context.vim\" -c \"wqa\" > \"vimdemo-vimsyntax.tmp\" " > > or > > mtxrun --verbose --noquotes bin:vim -u None -e -C -n -V10log -c "set > tabstop=8" -c "syntax on" -c "set syntax=c" -c "let contextstartline=1" -c > "let contextstopline=0" -c "source > c:/context/tex/texmf-context/tex/context/third/vim/2context.vim" -c "wqa" > "vimdemo-vimsyntax.tmp" " > > No vimdemo-vimsyntax.tmp-vimsyntax.tmp generated. The vim log says that it: > could not source "None" It should be -u NONE (all capitals) > It seems the vim may not received the -c "source ..." and other parameters. > So I move the vim command to a batch file: vimcmd.bat with following line, > > call vim -u None -e -C -n -c "set tabstop=8" -c "syntax on" -c "set > syntax=c" -c "let contextstartline=1" -c "let contextstopline=0" -c "source > c:/context/tex/texmf-context/tex/context/third/vim/2context.vim" %* > > then call > > mtxrun --verbose --noquotes bin:vimcmd -c "wqa" "vimdemo-vimsyntax.tmp" > or > mtxrun --verbose --noquotes bin:vimcmd "-c \"wqa\" \"vimdemo-vimsyntax.tmp\" > " > > It works well. Great. > I haven't linux/unix machine on hand so I didn't know if this > problem is only occurred in windows. Or the mtxrun related? It is mtxrun related. It works in linux, so it could be windows related. I do not have a windows machine to test (and not enough diskspace to install windows on a VM). As a last resort, what does the log file say for this (all in one line) mtxrun --verbose --noquotes bin:vim "-u NONE -e -C -n -V10log -c \"set tabstop=8\" -c \"syntax on\" -c \"set syntax=c\" -c \"let contextstartline=1\" -c \"let contextstopline=0\" -c \"source c:/context/tex/texmf-context/tex/context/third/vim/2context.vim\" -c \"wqa\" \"vimdemo-vimsyntax.tmp\" " If this does not work, does replacing bin:vim with bin:gvim work? Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________