texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] New special env variable: path to self


From: Lionel Elie Mamane
Subject: Re: [Texmacs-dev] New special env variable: path to self
Date: Fri, 24 Nov 2006 01:06:56 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Nov 23, 2006 at 10:36:01PM +0100, Henri Lesourd wrote:
> Lionel Elie Mamane wrote:

>>>> 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...).

>> As far as I can test, even with quote-arg, it happens if you return
>> your parameter, or anything based on your parameter.

>> I tried all combinations of

>> interactive edit is broken with all of these 8 things.

> No, it is not broken with my macro <self-path|...>, but it is with
> the other one (i.e. <self-path-buggy|...>). And my macro
> <self-path|...> falls into one of your 8 categories.

No, it doesn't; the scheme function called by your <self-path|...>
macro returns the constant stree '(arg "x") (constant at the Scheme
level, not at the TeXmacs typesetter level), and not anything based on
its argument. It doesn't fit in any of my four categories for the
scheme part. Your scheme function works only in combination with a
TeXmacs macro where one of the arguments is called "x", and not "y"
and not "prompt" and not ... I was trying to generalise it to one that
would work with "any" TeXmacs macro. The best I could come up with is
to pass the string supposed to replace "x" as an additional argument,
as exemplified in my previous email.

-- 
Lionel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]