Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] An other problem when writing a plugin.

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] An other problem when writing a plugin.


Chronological Thread 
  • From: Nicola Mingotti <address@hidden>
  • To: Bertrand BRATSCHI <address@hidden>, texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] An other problem when writing a plugin.
  • Date: Sun, 9 Dec 2018 13:29:18 -0800


Hi Bertrand,

I am building a plugin for Ruby, I am not familiar with Haskell.

I got the multiline input working yesterday, my approach is this

1] convert the newlines coming from TeXmacs into some blob

(string-replace s "\n" ";FOO;")

2] In my REPL, before the evaluator, i convert the blob back to "\n"


bye
n.


On 12/9/18 10:25 AM, Bertrand BRATSCHI wrote:
Hi,

I am facing a little problem me too, with input formatting of a plugin.
I’m really not expert in plugin code, can you help ?
I want this plugin to be able to interpret simultaneously the following :

[1] A string for the definition ( assignation ) of a string, something like : mysting
= "blabla"

[2] Multiline expressions, or short code with Haskell indentation.


I tried to add in (haskell-serialize lan t) by the followings :

for [1] : (string-replace s « \"" "''") "\n")

for [2] : (string-replace s « \n » "~") "\n")


Both [1] and [2] give the expected result when used alone.
But when writing both ( on lines 24, 25 of the file init-haskell.scm in
attachment ) only the last one works.
Exeped that problem, the pugin works quite fine.

Regards,
Bertrand




Archive powered by MHonArc 2.6.19.

Top of Page