- From: Javier Arántegui <address@hidden>
- To: address@hidden
- Subject: Re: [TeXmacs] Problems with Scheme
- Date: Thu, 18 Nov 2004 17:37:14 +0100
- Organization: Univ. de Lleida
Hello,
All this thread is making me feel not the smartest person in the world... I
don't like to bother you so much.
El Jueves, 18 de Noviembre de 2004 16:34, Joris van der Hoeven escribió:
>
> 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".
I was thinking in "f" but I wrote "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
In preferences, I was accepting all scripts. Anyway I have used tm-define to
define "f" and set preferences to 'Prompt on scripts'.
I cannot understand what is going wrong. I attach to this message the file
with the macro and my-init-texmacs.scm.
Now I get the following error:
<wrong-type-arg|tree-string|Wrong type argument in position %s:%S|?|#f>
>
(search for mouse-fold in the sources for an example).
I don't work with sources. So, how can I find easily mouse-fold in the
sources?
Javier
--
Javier Arántegui
Dept. Tecnologia de Alimentos / Dept. of Food Technology
Universitat de Lleida / University of Lleida (Spain)
Tel. +34 973702595
Fax +34 973702596
http://www.tecal.udl.es
<TeXmacs|1.0.4.4>
<style|generic>
<\body>
<assign|contar|<macro|t|<extern|(f t)|<quote-arg|t>>>>
Número de letras de Corcho: <contar|Corcho>
</body>
<\initial>
<\collection>
<associate|language|english>
<associate|preamble|true>
</collection>
</initial>(lazy-in-mode (cua keyboard) always?)
(tm-define (f t)
(:secure #t)
(string-length (tree->string t)))
Archive powered by MHonArc 2.6.19.