[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Re: New special env variable: path to self
From: |
Lionel Elie Mamane |
Subject: |
[Texmacs-dev] Re: New special env variable: path to self |
Date: |
Thu, 26 Oct 2006 14:36:16 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Thu, Oct 26, 2006 at 10:23:17AM +0200, Lionel Elie Mamane wrote:
> On Tue, Oct 24, 2006 at 02:40:35PM +0200, Lionel Elie Mamane wrote:
>>
>> <assign|input|<macro|prompt|body|<coq-orig-input|<with|color|<if|<equal|<value|prog-language>|coq>|<extern|coq-prompt-colour>|<value|color>>|<arg|prompt>>|<arg|body>>>>
>> where coq-prompt-colour is a secure Scheme procedure that will return
>> the colour the thing should be in.
> The problem is that as far as I can determine, there is no way for
> that scheme procedure to know the position in the document of the node
> being typeset. I thus propose the following:
> add an environmental variable "self" or "self-path" that evaluates
> to the path of the <value> node that asks it value. That is
> <value|self> would evaluate to (a suitable encoding) of the path to
> the value node.
> Would you willing to take a patch for that?
Here's that patch. Documentation: <value|self-path> now evaluates to
an unspecified encoding of the path to the "value" node in the
document tree. The scheme function decode-self-path decodes that
encoding into a path like tree->path gives.
--
Lionel
texmacs_self-path.patch
Description: Text document