On Sun, 2006-08-06 at 16:50 -0600, Ted Hilts wrote:
> (5) But my basic problem with all of this is understanding how to set up TCL
> to provide a data channel between itself and some other environment like
> Maxima or Maxima (hopefully in combination with an editor like EMACS ).
Xmaxima uses a socket to communicate with Maxima. You can look at the
TCL functions used by Xmaxima in the file RunMaxima.tcl in the
directory interfaces/xmaxima/Tkmaxima/ from the source code of Maxima.
> I should be able to run an editor (like Emacs) within the TCL console or
> batch file and within that editor set up TCL evoking Maxima functionality.
> So my objective widened from simply using TCL to Maxima interaction to that
> interaction involving an editor.
You can run xmaxima from a tcl/tk shell. I usually run wish in Linux
and from it I then use:
source /usr/local/bin/xmaxima
to run xmaxima. That way I can check any variables. If I need to do any
changes I edit the files in interfaces/xmaxima/Tkmaxima/ using Emacs,
do "make; make install" in interfaces/xmaxima/ and reissue the source
command to run xmaxima within the wish console.
I use make because xmaxima is broken up into pieces in the CVS
repository. If you want to experiment editing the whole file (xmaxima)
you can open it in Emacs and if you have the tcl-emacs mode
installed, you will have a TCL menu in Emacs that allows you to execute
xmaxima from Emacs.
Regards,
Jaime Villate