Joris van der Hoeven wrote:
Dear Andrea,

If I understand well, you are just proposing to uncomment all references to 
gset.
Do you know if there is a way to test the version of octave and execute the code
only for older version. In that way, we remain backward compatible.

Thanks, Joris
Sorry Joris,

the previous versions of .octaverc and tm-start.oct were still buggy, here are the correct ones.

The point is that most of the functions in octave29/plot/ don't work with Octave 3.0.

However, if Octave does not find them in its path it uses its default and graphics are outputted to an external window, similarly to what happens with the Maxima plugin.

So with a minimal effort the Octave plugin becomes usable again (and backward compatible with Octave versions < 2.9). Then possibly someone could fix the functions in octave29/plot/ to get back inline graphics.

Andrea

d=[getenv("TEXMACS_PATH"),"/plugins/octave/octave29"];
if (length(d) > 0)
   addpath([d,"/tm:"],[d,"/polynomial:"]);
   PS1("\\002channel:prompt\\005octave> \\005");
   PS2("\\002channel:prompt\\005> \\005");
   global TMSTRUCT=0;
   global TMCOLORS=["black"; "red"; "magenta"; "orange"; "green"; "blue";];
   global TMCOLIDX=6;
   tmrepl
endif
d=[getenv("TEXMACS_PATH"),"/plugins/octave/octave29"];
if (length(d) > 0)
   addpath([d,"/tm:"],[d,"/polynomial:"]);
   PS1("\\002channel:prompt\\005octave> \\005");
   PS2("\\002channel:prompt\\005> \\005");
   global TMSTRUCT=0;
   global TMCOLORS=["black"; "red"; "magenta"; "orange"; "green"; "blue";];
   global TMCOLIDX=6;
   tmrepl
endif
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to