From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49314 Path: news.gmane.org!not-for-mail From: "Andy" Newsgroups: gmane.comp.tex.context Subject: Re: t-vim failed under windows Date: Fri, 10 Apr 2009 08:59:37 -0500 Message-ID: <000001c9b9e4$96d39320$56e0a8c0@tea.state.tx.us> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239372455 6365 80.91.229.12 (10 Apr 2009 14:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 14:07:35 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 10 16:08:54 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 1LsHPW-00005o-3Y for gctc-ntg-context-518@m.gmane.org; Fri, 10 Apr 2009 16:08:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2CB0A1FCBD; Fri, 10 Apr 2009 16:07:23 +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-03; Fri, 10 Apr 2009 16:06:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EB30B1FC3E; Fri, 10 Apr 2009 16:06:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 711A51FC3E for ; Fri, 10 Apr 2009 16:06:46 +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 15090-04 for ; Fri, 10 Apr 2009 16:06:38 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id D83931FC03 for ; Fri, 10 Apr 2009 16:06:38 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.147]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3AE6aQV000578 for ; Fri, 10 Apr 2009 16:06:38 +0200 Original-Received: by qw-out-1920.google.com with SMTP id 9so761978qwj.38 for ; Fri, 10 Apr 2009 07:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references:subject :date:message-id:mime-version:content-type:content-transfer-encoding :x-mailer:in-reply-to:thread-index:x-mimeole; bh=t2HwCPPrEBond+fOTr/gfyKuvCPtRjHKYvzg3b0SLg0=; b=QfWnkSLz8F4FQlw2Zjekm/eQKot7e9T/0RO8gKCbrOMcF6aiFQ7UdWJKpPNZZzwmXW KPjlGIleMB6+M9dFHH0i6jQ6t8lnGqvGiRk+8Zgvx2x7/iNZ4FHCBtxP2wKbIBKcBaKd 5ygprZloHceMSD6sQl9OpDhXJXi/qKBWXnMYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:in-reply-to :thread-index:x-mimeole; b=VwV00XyzvBtfckzEPTAZsSGdOJ/OyAekssjrywXBBDC8SD7C1YY6oLj0/kbTzX4AaC 9FlDh2pxlciFpGwd/NIK6YVkcKndPyvgCpz9aU5QQWV+01A4Hs41IUMHofj5+0Fu2hgd c/Q2hqEfknBx0ru2MS5zaUU6wa8xlSL28PAxQ= Original-Received: by 10.224.6.136 with SMTP id 8mr3986744qaz.234.1239371967025; Fri, 10 Apr 2009 06:59:27 -0700 (PDT) Original-Received: from lwang (external.tea.state.tx.us [198.214.96.241]) by mx.google.com with ESMTPS id 2sm2191343qwi.53.2009.04.10.06.59.26 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Apr 2009 06:59:26 -0700 (PDT) X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acm5h+PH1Rl1URdjQ7KTKXKPPwx/iAAUuAbA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.92.147; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 207045512 - 8a0308513cf0 - 20090410 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:49314 Archived-At: > 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 -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 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. 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? Andy ___________________________________________________________________________________ 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 ___________________________________________________________________________________