mailing-list for TeXmacs Users

Text archives Help


Re: Draw Curve


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: address@hidden
  • Subject: Re: Draw Curve
  • Date: Tue, 24 Mar 2020 15:35:52 +0100

By the way the same holds for the package csvTable which I wrote time ago; I have commented out the loading of the format there too (so that package is broken too at the moment), will fix both.


G.

On 24.03.20 15:24, Giovanni Piredda wrote:
Hi Max,

thanks for the hint, I did not realize that it is possible to filter the commands one allows through load. I will work on it, take down the dangerous command for the time being (it means that the program presently won't work but it is fine) and if I need some help will write again.


Giovanni

On 24.03.20 15:20, Massimiliano Gubinelli wrote:
Dear Giovanni,
  is quite dangereous (as you observe in the readme) to allow arbitrary scritps to execute. One should make available to the executing script only the commands needed to create a picture (and maybe mathematical/string pure functions). This is possible since load take (if I remember correctly) as argument an 'environment' or 'module' with the available bindings. This would make execution safe.

That is a nice exercise in scheme/guile for you. :)

max


On 24. Mar 2020, at 15:11, Giovanni Piredda <address@hidden> wrote:


On 24.03.20 14:18, Giovanni Piredda wrote:

There is an error - I think at loading - which does not stop the package from working; I would appreciate help to fix it. The error is

<unnamed port>: In procedure struct-vtable in expression (struct-vtable obj):
<unnamed port>: Wrong type argument in position 1 (expecting struct): #<procedure insertGraphics (graphicsFile)>
<unnamed port>: In procedure struct-vtable in expression (struct-vtable obj):
<unnamed port>: Wrong type argument in position 1 (expecting struct): #<procedure insertGraphics (graphicsFile)>

(the repetition is in the output)

Giovanni


I found the reason, the path argument of the use-module statement was wrong, will upload the correction presently in the GitHub repository.


G.




Archive powered by MHonArc 2.6.19.

Top of page