[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Environment at a tree
From: |
Lionel Elie Mamane |
Subject: |
[Texmacs-dev] Environment at a tree |
Date: |
Mon, 20 Nov 2006 15:49:08 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hi,
Given t a value of type tree in TeXmacs's scheme environment, is there
an easy way to find the value what a certain TeXmacs variable has at
that point in the document? Roughly, what the tree (value "foo") would
be if placed at the place of t. I mean, suppose that the tree-type
value points at the tree (here) in the following document:
(with "foo" "bar"
(document
"blah"
(with "foo" "baz"
(session
(document
(input "$" "Go! Go!")
(input (concat "$" (here) "%") "Back! Back!")
(output "No luck here."))))))
I would get "baz". An "easy" way means short of doing tree-up until
one encounters a (with "foo" . .) or (with . . "foo" . .) or
(with . . . . "foo" . .)
where "." stands for any tree. An easy way includes a library routine
that would do just that.
--
Lionel
- [Texmacs-dev] Environment at a tree,
Lionel Elie Mamane <=