- From: Joris van der Hoeven <address@hidden>
- To: Javier Arántegui <address@hidden>
- Cc: <address@hidden>
- Subject: Re: [TeXmacs] Problems with Scheme
- Date: Thu, 18 Nov 2004 16:34:47 +0100 (CET)
On Thu, 18 Nov 2004, Javier Arántegui wrote:
>
El Jueves, 18 de Noviembre de 2004 10:02, Joris van der Hoeven escribió:
>
> In recent versions of TeXmacs, we directly pass the arguments as trees,
>
> so you should convert them to strings using tree->string.
>
> However, there is a bug with this, since the > in tree->string
>
> is currently rewritten as <gtr>. I hope to take a look at this soon.
>
> You may write a function (define (f t) (string-length (tree->string t)))
>
> and use "f".
>
>
Thank you very much. This was just driving me crazy. I thought that I was
>
doing something wrong but I was unable to find the problem.
>
>
I understand that I must define the function t in my-init-texmacs.scm. Then
>
I
>
can use it in the text using extern. Did I get it correctly? [I don't thing
>
so because I tried it and it didn't work]
The function "f", not "t". Also, in the preferences, you should set
your security so as to accept all scripts. Alternatively, you may define
"f" to be secure using tm-define and the (:secure #t) option
(search for mouse-fold in the sources for an example).
Archive powered by MHonArc 2.6.19.