problem in interaction of imaxima and maxima mode



Hello group,

When in X I like to run imaxima in conjuction with the standard
maxima mode, i.e. I set "imaxima-use-maxima-mode-flag" to "t".
I often use the functions "maxima-minibuffer-on-foo" with a
universal argument so that I get the result inserted in my working
buffer.  Now with imaxima the ouput is inserted with a lot of extra
spaces and the output prompt.

For example with standard maxima mode:

t^(-3)-3*t^(-2)+5*t^(-1)-7+10*t-10*t^(2)+10*t^(3)-8*t^(4)+5*t^(5)-3*t^(6)+t^(7);
%, t = %e^(2*%i*%pi/6);
%^2;
expand(%);
ratsimp(%); /*==> -3 <==*/

and the same calculation with imaxima:

t^(-3)-3*t^(-2)+5*t^(-1)-7+10*t-10*t^(2)+10*t^(3)-8*t^(4)+5*t^(5)-3*t^(6)+t^(7);
%, t = %e^(2*%i*%pi/6);
%^2;
expand(%);
ratsimp(%); /*==> ( % o 6 8 )  - 3 <==*/

The extra spaces make longer output barely readable. 

Best,
Nikos