From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77012 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Input path to include external files with vim module Date: Wed, 20 Jun 2012 15:46:03 -0400 (EDT) Message-ID: References: <20120618121748.14d007d1@homerow> <4FE20C90.3010907@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1156862892-1340221567=:15381" X-Trace: dough.gmane.org 1340221583 26363 80.91.229.3 (20 Jun 2012 19:46:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2012 19:46:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 20 21:46:22 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ShQr4-0000GR-9n for gctc-ntg-context-518@m.gmane.org; Wed, 20 Jun 2012 21:46:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41F1B10224; Wed, 20 Jun 2012 21:46:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id W6vYZY8t03d6; Wed, 20 Jun 2012 21:46:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D62C1020A; Wed, 20 Jun 2012 21:46:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C9771020A for ; Wed, 20 Jun 2012 21:46:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id inonV-d71SNP for ; Wed, 20 Jun 2012 21:46:12 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 7270910204 for ; Wed, 20 Jun 2012 21:46:12 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5KJk9Ka032566 for ; Wed, 20 Jun 2012 21:46:11 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682554.dsl.bell.ca [65.94.12.58]) By hackers.mr.itd.umich.edu ID 4FE2287F.559A5.11363 ; Authuser adityam; 20 Jun 2012 15:46:07 EDT In-Reply-To: <4FE20C90.3010907@wxs.nl> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; 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: 0VHoHK9PN - 6fb6dc6f0b34 - 20120620 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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 Xref: news.gmane.org gmane.comp.tex.context:77012 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1156862892-1340221567=:15381 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 20 Jun 2012, Hans Hagen wrote: > On 20-6-2012 19:33, Aditya Mahajan wrote: >> On Tue, 19 Jun 2012, Aditya Mahajan wrote: >>=20 >>> On Mon, 18 Jun 2012, Marco wrote: >>>=20 >>>> does the vim module have a feature to specify the input path, >>>> similar to \usepath for context files or \setupexternalfigures >>>> [directory=3D=85] for graphics? >>=20 >> @Hans: Can we make the following change in file-res.lua >> >> if isfile(fname) then >> if trace_files then >> report_files("found on extra path: %s",fname) --AM: was nam= e >> end >> fnd =3D fname --- AM: was name >> break >> end >>=20 >> Then, getreadfilename("any", ".", name) will always return the location >> of the found >> file. This is also consistent with the behavior when the file is found >> in ../ or >> ../../ directories. > > sure, just call it a bug -) Thanks. @Marco: In the next version of t-filter (and by inheritence t-vim), the=20 local files will also be searched in \usepath locations. Thus you can use: \usepath[list-of, paths] \starttext \processfile{file-in-path} \typefile{file-in-path} \stoptext For the moment, this is MkIV only feature. If you want to experiment, make the above change in file-res.lua,=20 regenerate the formats, and use t-filter.mkiv from github. Aditya --8323328-1156862892-1340221567=:15381 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-1156862892-1340221567=:15381--