Lionel Elie Mamane wrote:

It does have the disadvantage of variable capture, namely the "x" is

hardcoded in the Scheme function. I tried to return:

parm
(list 'unquote parm)
(list 'eval parm)

This will not work, the Scheme unquote, eval, and
the like have absolutely no connection to the corresponding
ones in the macro-expander.


instead, but this breaks interactive editing: e.g. typing '^' in math
mode doesn't make a superscript anymore, but a '^' character.

This happens only if you edit the parameter in the version of
the macro without <quote-arg|...> (for some reason I don't fully
understand, to be honest...).

If you want to call the macro-expander from inside Scheme,
use (texmacs-exec x). For example, you could try :
<<
(tree->stree (texmacs-exec '(underline "abcde")))
>>

inside a Scheme session.



_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to