From: Andre Caldas <andre.em.caldas@gmail.com>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: RFC: path relative to current file.
Date: Thu, 8 Nov 2012 14:30:30 -0200 [thread overview]
Message-ID: <CADVh14VzOUWZ9xOQwbuqmB9iOy0pT4FJ0rdMT+XnaC3ovEi85Q@mail.gmail.com> (raw)
In-Reply-To: <509BA8D5.9080903@wxs.nl>
>> Are we giving up the feature? I was kind of using it already... :-(
>
> you have a messed up system ... the code is in data-pre.lua
Indeed! :-)
Sorry for the mess!
Now, I have a bug at data-pre.lua. The variable inputstack is not
defined there. Here is a fix:
diff --git a/tex/context/base/data-pre.lua b/tex/context/base/data-pre.lua
index 40b430b..3ef8c59 100644
--- a/tex/context/base/data-pre.lua
+++ b/tex/context/base/data-pre.lua
@@ -91,6 +91,7 @@ prefixes.home = function(str)
end
local function toppath()
+ local inputstack = resolvers.inputstack
local pathname = dirname(inputstack[#inputstack] or "")
if pathname == "" then
return "."
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2012-11-08 16:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-13 1:34 Andre Caldas
2012-10-15 17:56 ` Hans Hagen
2012-10-15 18:20 ` Hans Hagen
2012-10-15 19:42 ` Andre Caldas
2012-10-15 20:04 ` Hans Hagen
2012-10-15 21:27 ` Aditya Mahajan
2012-10-15 21:38 ` Marco Patzer
2012-10-15 22:11 ` Hans Hagen
2012-10-15 22:26 ` Andre Caldas
2012-10-16 7:33 ` Hans Hagen
2012-10-16 11:25 ` Andre Caldas
2012-11-03 0:35 ` Andre Caldas
2012-11-03 10:13 ` Sietse Brouwer
2012-11-03 12:47 ` Hans Hagen
2012-11-07 19:34 ` Andre Caldas
2012-11-07 20:35 ` Hans Hagen
2012-11-08 12:14 ` Andre Caldas
2012-11-08 12:43 ` Hans Hagen
2012-11-08 16:30 ` Andre Caldas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADVh14VzOUWZ9xOQwbuqmB9iOy0pT4FJ0rdMT+XnaC3ovEi85Q@mail.gmail.com \
--to=andre.em.caldas@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).