From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77005 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 13:33:36 -0400 (EDT) Message-ID: References: <20120618121748.14d007d1@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1641445452-1340213617=:1798" X-Trace: dough.gmane.org 1340213630 24084 80.91.229.3 (20 Jun 2012 17:33:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2012 17:33:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 20 19:33:48 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 1ShOmn-0004jH-Qf for gctc-ntg-context-518@m.gmane.org; Wed, 20 Jun 2012 19:33:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9CC5D10203; Wed, 20 Jun 2012 19:33:45 +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 d8oumXaE7lC2; Wed, 20 Jun 2012 19:33:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA389101FB; Wed, 20 Jun 2012 19:33:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A6633101FB for ; Wed, 20 Jun 2012 19:33:42 +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 UhVCAQ6QaJje for ; Wed, 20 Jun 2012 19:33:41 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 86DB4101EA for ; Wed, 20 Jun 2012 19:33:41 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5KHXcia012965 for ; Wed, 20 Jun 2012 19:33:39 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682554.dsl.bell.ca [65.94.12.58]) By hackers.mr.itd.umich.edu ID 4FE20971.C065E.24384 ; Authuser adityam; 20 Jun 2012 13:33:37 EDT In-Reply-To: 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: 03HoFxDoH - 057c76513a4a - 20120620 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:77005 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-1641445452-1340213617=:1798 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 19 Jun 2012, Aditya Mahajan wrote: > On Mon, 18 Jun 2012, Marco wrote: > >> does the vim module have a feature to specify the input path, >> similar to \usepath for context files or \setupexternalfigures >> [directory=3D=E2=80=A6] for graphics? @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 name end fnd =3D fname --- AM: was name break end 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 .= =2E/ or =2E./../ directories. This change should not affect the \readfilename macros and will allow me to= use \def\externalfilter@any_filename#1% {\ctxcommand{getreadfilename("any",".","#1")}} to search for a file (even if it is in the path specified by \usepath). Aditya --8323328-1641445452-1340213617=:1798 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-1641445452-1340213617=:1798--