I had to change "eval" parsing a bit. Now "-eval" works only in normal
mode, i.e. neither of "axiom -nosman -eval" or "axiom -eval -nosman"
works. However, there is "-texmacs" option that does all required to
start communication with TeXmacs. "AXIOMsys -eval" works also.
Multiply eval-s are supported.

On Jan 17, 9:29 am, Alexander Solovets <[email protected]> wrote:
> I thought there was some kind of statements separator like ';' =) So,
> indeed multiply -eval will help. "-eval" after "-nosman" doesn't work
> as expected because of the strict condition: if $* = "-nosman" -> run
> AXIOMsys and I tried to make as few changes as possible. I think I'll
> be able to fix that both with implementing multiply evals.
>
> On Jan 17, 7:11 am, Ralf Hemmecke <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi Alexander,
>
> > I've merged, your two 
> > brancheshttps://github.com/hemmecke/fricas/commits/arg-texmacs
> > and put
>
> >    (:launch "fricas -eval ')read
> > /home/hemmecke/.TeXmacs/plugins/fricas/.fricas.input' -nosman")
>
> > into ~/.TeXmacs/plugins/fricas/progs/init-fricas.
>
> > It seems to work well. It's only that I see the content of my input file
> > in texmacs at the time I start the FriCAS session.
>
> > What I don't find perfect is that
>
> > fricas -eval 'some code' -nosman
>
> > will word, while
>
> > fricas -nsman -eval 'some code'
>
> > will not. Since -eval must be given before -nosman is evalutated.
> > But maybe that's not overly important to be fixed.
>
> > What would be more important is that fricas should accept several -eval
> > options. Otherwise I wouldn't have any clue how to put your init code
>
> > ------
> > )set output algebra off
> > )set output texmacs on
> > )lisp (setf |$ioHook| (lambda (x &optional args) (cond ((eq x
> > '|startPrompt|) (princ (concat (code-char 2) "prompt#") ))  ((eq x
> > '|endOfTeXmacsOutput|) (princ (concat (code-char 5) (code-char 10))))
> >   ((eq x '|startTeXmacsOutput|) (princ (code-char 2)))  ((eq x
> > '|startKeyedMsg|)  (princ (concat (code-char 2) "verbatim:")))  ((eq x
> > '|endOfKeyedMsg|)  (princ (code-char 5)))  ((eq x '|endOfPrompt|) (princ
> > (code-char 5) ))  )))
> > )lisp (setf |$inputPromptType| '|plain|)
> > -------
>
> > directly into the :launch specification above, i.e. no separate
> > .fricas.init file.
>
> > Anyway, independent from texmacs, it would be good to be able to pass
> > several lines to fricas, i.e. several -eval commands.
>
> > Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to