From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44625 Path: news.gmane.org!not-for-mail From: "Zhaopeng Xing" Newsgroups: gmane.comp.tex.context Subject: Re: t-vim problem Date: Tue, 7 Oct 2008 21:46:57 +0200 Message-ID: <72c60e910810071246p63f61369y9c4631d545e49732@mail.gmail.com> References: <72c60e910810070144p3fe307d2se0588edf6f63a841@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1729489901==" X-Trace: ger.gmane.org 1223408937 4964 80.91.229.12 (7 Oct 2008 19:48:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 19:48:57 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 07 21:49:55 2008 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 1KnIZ7-0004cv-D5 for gctc-ntg-context-518@m.gmane.org; Tue, 07 Oct 2008 21:49:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DCE191FD8A; Tue, 7 Oct 2008 21:48: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 20907-01-4; Tue, 7 Oct 2008 21:47:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4A7181FCD0; Tue, 7 Oct 2008 21:47:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B78B01FCCE for ; Tue, 7 Oct 2008 21:47: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 20213-01-6 for ; Tue, 7 Oct 2008 21:46:57 +0200 (CEST) Original-Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by ronja.ntg.nl (Postfix) with ESMTP id ADA771FCE4 for ; Tue, 7 Oct 2008 21:46:57 +0200 (CEST) Original-Received: by mu-out-0910.google.com with SMTP id w9so2832282mue.4 for ; Tue, 07 Oct 2008 12:46:57 -0700 (PDT) Original-Received: by 10.187.166.12 with SMTP id t12mr1416002fao.38.1223408817302; Tue, 07 Oct 2008 12:46:57 -0700 (PDT) Original-Received: by 10.187.231.17 with HTTP; Tue, 7 Oct 2008 12:46:57 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44625 Archived-At: --===============1729489901== Content-Type: multipart/alternative; boundary="----=_Part_57400_3637742.1223408817292" ------=_Part_57400_3637742.1223408817292 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/10/7 Aditya Mahajan > On Tue, 7 Oct 2008, Zhaopeng Xing wrote: > > > Hi Aditya, > > > > I am using t-vim 2008.09.15, but the following sample runs problem with > the > > hightlighting file name. > > > > \usemodule[vim] > > > > \starttext > > > > \definevimtyping [RUBY] [syntax=ruby] > > > > \startRUBY > > > > #! /usr/bin/ruby > > > > # This is my first ruby program > > > > puts "Hello World" > > > > \stopRUBY > > > > \stoptext > > > > > > The message is saying: > > > > > > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'. > > > > > > > > \relax > > > > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax > > > > \egroup \@@vsafter > > > > l.8 \stopRUBY > > > > Please type another input file name: > > I thought that I had corrected this. Are you using a recent mtxrun? Type > in mtxrun --help. Does the third line say > > MtxRun | --execute run a script or program (--noquotes) > Yes, it is. I am using the latest minimal and t-vim is installed in texmf-local. > > > I checked the directory. The file should be named to > > untitled-1-vimsyntax.tmp instead of > untitled-1-vimsyntax.tmp-vimsyntax.tmp. > > The filenaming is correct. t-vim writes a file called > \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with > -vimsyntax.tmp, so in effect t-vim is looking for a file called > > \jobname-\number-vimsyntax.tmp-vimsyntax.tmp. > > This slightly confusing naming scheme is so that --purge does remove all > the temporary files. > I do not know exactly the inside mechanism. When the message asked me about the file name, I input \jobname-\number-vimsyntax.tmp and it works. So I think that the file name should be \jobname-\number-vimsyntax.tmp. > > > Can you show me how to figure out such a problem? Thanks. > > Which OS are you using? > I am using Archlinux on a Thinkpad T43. The vi program works fine. > 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 > > ___________________________________________________________________________________ > -- Zhaopeng XING Tinbergen Institute ------=_Part_57400_3637742.1223408817292 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
2008/10/7 Aditya Mahajan <adityam@umich.edu>
On Tue, 7 Oct 2008, Zhaopeng Xing wrote:

> Hi Aditya,
>
> I am using t-vim 2008.09.15, but the following sample runs problem with the
> hightlighting file name.
>
> \usemodule[vim]
>
> \starttext
>
> \definevimtyping [RUBY] [syntax=ruby]
>
> \startRUBY
>
> #! /usr/bin/ruby
>
> # This is my first ruby program
>
> puts "Hello World"
>
> \stopRUBY
>
> \stoptext
>
>
> The message is saying:
>
>
> ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'.
>
> <to be read again>
>
> \relax
>
> \dodotypevimfile ...\input #2-vimsyntax.tmp\relax
>
> \egroup \@@vsafter
>
> l.8 \stopRUBY
>
> Please type another input file name:

I thought that I had corrected this. Are you using a recent mtxrun? Type
in mtxrun --help. Does the third line say

MtxRun | --execute             run a script or program (--noquotes)
 
Yes, it is. I am using the latest minimal and t-vim is installed in texmf-local.
 

> I checked the directory. The file should be named to
> untitled-1-vimsyntax.tmp instead of untitled-1-vimsyntax.tmp-vimsyntax.tmp.

The filenaming is correct. t-vim writes a file called
\jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with
<filename>-vimsyntax.tmp, so in effect t-vim is looking for a file called

\jobname-\number-vimsyntax.tmp-vimsyntax.tmp.

This slightly confusing naming scheme is so that --purge does remove all
the temporary files.
I do not know exactly the inside mechanism. When the message asked me about the file name, I input \jobname-\number-vimsyntax.tmp and it works. So I think that the file name should be \jobname-\number-vimsyntax.tmp.

> Can you show me how to figure out such a problem? Thanks.

Which OS are you using?
I am using Archlinux on a Thinkpad T43. The vi program works fine.


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
___________________________________________________________________________________



--
Zhaopeng XING

Tinbergen Institute
------=_Part_57400_3637742.1223408817292-- --===============1729489901== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1729489901==--