texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] Scheme interface for the graphical mode


From: Massimiliano Gubinelli
Subject: Re: [Texmacs-dev] Scheme interface for the graphical mode
Date: Wed, 25 Nov 2020 00:02:08 +0100

Dear Giovanni,
 procedures declared with tm-define are visible globally, while procedures 
declared with define are only visible within the module. I think this answers 
your question.

Of course in the future it is possible to imagine to enhance the module with 
additional procedures, useful for graphic programming, but for the moment I 
think would be better to experiment with code external to the main code-base.


Max



> On 24. Nov 2020, at 23:47, Giovanni Piredda <pireddag@posteo.de> wrote:
> 
> Dear all,
> 
> I am writing a small blog post for modular graphics and I realized that two 
> out of the three functions that I wrote for that already exist in TeXmacs 
> (and maybe the third too ... but I do not know).
> 
> To orient myself better: what is the status of the functions in 
> progs/graphics/? Is one expected to be able to use them from Scheme?
> 
> I tested a few in a Scheme session. Some work ((stree->tree '(rectangle 
> (point 0 0) (point 1 1))) draws a square), some don't (example: Unbound 
> variable: enhanced-tree-property-set!), some work differently from how I 
> expect them to.
> 
> Example for the last case: (enhanced-tree->radical '(with "color" "red" 
> (gr-group (point 1 0) (point 1 1)))) outputs (with "color" "red" (gr-group 
> (point 1 0) (point 1 1)))
> 
> A short explanation of the status would help me to rewrite what I have 
> already written (or to put it in the context of what already exists).
> 
> As far as I can see, the whole documentation for these functions is in 
> Help→Scheme extensions→Scheme interface for the graphical mode.
> 
> Looking forward to some info.
> 
> Giovanni
> 
> 
> _______________________________________________
> Texmacs-dev mailing list
> Texmacs-dev@gnu.org
> https://lists.gnu.org/mailman/listinfo/texmacs-dev




reply via email to

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