Andrei Zorine | 1 May 2003 12:50
Picon

Font-lock in *maxima* buffer in XEmacs 21.4 under Win98

Hello,
I just thought about asking for a small May Day gift from you guys :) I 
can't make my XEmacs *maxima* buffer display different fonts. (Your gift 
is a good advice, of course). Here's the part of my init.el file

(pushnew "c:\\Program 
Files\\Maxima-5.9.0\\share\\maxima\\5.9.0\\emacs\\" load-path :test 'equal)
(autoload 'maxima "maxima" "Maxima interaction" t)
(setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist))
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'emaxima-mode "emaxima" "EMaxima" t)
(add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima)

So when I run font-lock-mode only strings get displayed in green, no 
boldface etc :(

I also face problems loading share files, because FILE_SEARCH_MAXIMA 
points non-existing c:/msys/1.0/maximainstall when run as maxima.bat 
(Xmaxima sets the variable correctly). Adding 
#$FILE_SEARCH_MAXIMA[2]:"some-path" to maxima-init.lisp makes no effect.

And one more question: what are all these %1, %2, ... %9  variables 
maxima.bat? Any option list available?

Thanks in advance,
--
Andrei Zorine
Jay Belanger | 1 May 2003 23:36
Favicon

Re: Font-lock in *maxima* buffer in XEmacs 21.4 under Win98


Andrei Zorine <zoav1 <at> uic.nnov.ru> writes:

> Hello,
> I just thought about asking for a small May Day gift from you guys :)
> I can't make my XEmacs *maxima* buffer display different fonts. (Your
> gift is a good advice, of course). Here's the part of my init.el file
...
> So when I run font-lock-mode only strings get displayed in green, no
> boldface etc :(

Hmm.  The mode in the *maxima* buffer is a derived mode from
comint-mode, and comint-mode does all the font-locking.  So I'm not
sure why nothing is happening, perhaps the XEmacs comint-mode doesn't
do any coloring?  I don't know, I'll look into it.

> And one more question: what are all these %1, %2, ... %9  variables
> maxima.bat? Any option list available?

Yes.  In Linux, you can find them with
maxima --help
I don't know what the Windows analogue is.

Jay
test | 1 May 2003 23:55
Picon

2 basic questions about linear.

1. elementary row operation for "matrix".
     I would like to perform elementary row operation for Matrix.
     [ 1, 1,  2]    first Row of Matrix A  -> Row1
     [ 2, 4, -3]    2nd Row of Matrix A  -> Row2
     [ 3, 6, -5]    3rd Row of Matrix  A -> Row3
   In this Matrix named "A",   I plan to perform Row2 + (-2)*Row1.
   Row(A, 2) - 2*(Row(A,1)  is work well.
   But I can not return the value to Row2 of Matrix A.
   I know the Matrix( [ 1, 0, 1],  [-2, 1,0], [0,  0, 1]).A is good 
another way.
  But I want know how to do.

2. About a norm of vector.
    I try to find the function that return the norm of  a vector.
   But I don't find. So I have done like bellows.

   B:[2,2]
   ABS(B.B)

   That's I performed. Is there any simple way to get a norm of vector
   like ||B|| or Norm(B).

Thank you.
C Y | 1 May 2003 23:59
Picon
Favicon

Colors in Emacs (Was Re: Font-lock in *maxima* buffer)


--- Jay Belanger <belanger <at> truman.edu> wrote:
> 
> Andrei Zorine <zoav1 <at> uic.nnov.ru> writes:
> 
> > Hello,
> > I just thought about asking for a small May Day gift from you guys
> > :) I can't make my XEmacs *maxima* buffer display different fonts.
> > (Your gift is a good advice, of course). Here's the part of my 
> > init.el file
> > ...
> > So when I run font-lock-mode only strings get displayed in green,
> > no boldface etc :(
> 
> Hmm.  The mode in the *maxima* buffer is a derived mode from
> comint-mode, and comint-mode does all the font-locking.  So I'm not
> sure why nothing is happening, perhaps the XEmacs comint-mode doesn't
> do any coloring?  I don't know, I'll look into it.

I don't know if this is related or not, but for a while now I haven't
been able to get colors when I run a maxima session like I used to be
able to.  The screenshot in the Maxima Book is what it used to look
like, and the one in the screenshots page is what I've got now.  Am I
missing an option or has something changed?  Here are the possibly
relevant sections of my .emacs file (using GNU Emacs 21.3.1)

;;#############################
;;    Emacs Defined Section
;;#############################
(custom-set-variables
(Continue reading)

James Amundson | 2 May 2003 00:28
Favicon

maxima.bat (was Re: Font-lock in *maxima* buffer in XEmacs 21.4 under Win98)

On Thu, 2003-05-01 at 05:50, Andrei Zorine wrote:

> I also face problems loading share files, because FILE_SEARCH_MAXIMA 
> points non-existing c:/msys/1.0/maximainstall when run as maxima.bat 
> (Xmaxima sets the variable correctly). Adding 
> #$FILE_SEARCH_MAXIMA[2]:"some-path" to maxima-init.lisp makes no effect.
> 
> And one more question: what are all these %1, %2, ... %9  variables 
> maxima.bat? Any option list available?

I'm sorry to say that the current maxima.bat is just a hack to allow
some command-line usage of Maxima on windows. You should think of it as
a broken script that might work in some circumstances instead of as a
working script that might break in some circumstances. A working
maxima.bat is on my list to do before Maxima 5.9.1. Doing it properly is
going to require some deep internal changes that I have already thought
out, but not yet implemented.

In the meantime, if you set the environment variable MAXIMA_DIRECTORY to
the location of your maxima installation, maxima should operate
correctly, including finding the share problems. I haven't tried it, so
please let us know if you find problems doing so.

--Jim

P.S. The %1...%9 don't currently do anything.
Andrei Zorine | 2 May 2003 08:32
Picon

Re: Colors in Emacs (Was Re: Font-lock in *maxima* buffer)

Hello,

>  '(global-font-lock-mode t nil (font-lock))

XEmacs: Symbol's funtcion definition is void: global-font-lock-mode

--
Andrei Zorine
Barton Willis | 2 May 2003 17:11
Favicon

Re: 2 basic questions about linear.

Try something like this

(C2) m : matrix([1,2,3],[4,5,6],[7,8,9]);
(D2) MATRIX([1,2,3],[4,5,6],[7,8,9])

Replace row 2 by row 2 - 4 row 1

(C3) m[2] : part(m,2) - 4 * part(m,1);
(D3) [0,-3,-6]

Look at m 
(C4) m;
(D4) MATRIX([1,2,3],[0,-3,-6],[7,8,9])

Replace row 3 by row 3 - 7 row 1

(C5) m[3] : part(m,3) - 7 * part(m,1);
(D5) [0,-6,-12]

Look at m
(C6) m;
(D6) MATRIX([1,2,3],[0,-3,-6],[0,-6,-12])

Replace row 3 by row 3 - 2 row 2

(C7) m[3] : part(m,3) - 2 * part(m,2);
(D7) [0,0,0]

Look at m

(Continue reading)

C Y | 2 May 2003 18:34
Picon
Favicon

Re: Colors in Emacs (Was Re: Font-lock in *maxima* buffer)


--- Andrei Zorine <zoav1 <at> uic.nnov.ru> wrote:
> Hello,
> 
> >  '(global-font-lock-mode t nil (font-lock))
> 
> XEmacs: Symbol's funtcion definition is void: global-font-lock-mode

Hmm - I guess that's a GNU Emacs setting rather than XEmacs.  Although
it doesn't seem to be giving me the colors I would like in Maxima in
GNU Emacs either :-(.

CY

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
Jay Belanger | 2 May 2003 19:00
Favicon

Re: Colors in Emacs (Was Re: Font-lock in *maxima* buffer)


C Y <smustudent1 <at> yahoo.com> writes:

> --- Jay Belanger <belanger <at> truman.edu> wrote:
>> 
>> Andrei Zorine <zoav1 <at> uic.nnov.ru> writes:
>> 
>> > Hello,
>> > I just thought about asking for a small May Day gift from you guys
>> > :) I can't make my XEmacs *maxima* buffer display different fonts.
>> > (Your gift is a good advice, of course). Here's the part of my 
>> > init.el file
>> > ...
>> > So when I run font-lock-mode only strings get displayed in green,
>> > no boldface etc :(
>
>> Hmm.  The mode in the *maxima* buffer is a derived mode from
>> comint-mode, and comint-mode does all the font-locking.  So I'm not
>> sure why nothing is happening, perhaps the XEmacs comint-mode doesn't
>> do any coloring?  I don't know, I'll look into it.

Hm.  The XEmacs version of comint-mode seems to have all the face and
font-locking commented out; I'm not sure why.  There are many
comments of the form "Disable for now, I'm not sure that font-lock
doesn't do better."

> I don't know if this is related or not, but for a while now I haven't
> been able to get colors when I run a maxima session like I used to be
> able to.  The screenshot in the Maxima Book is what it used to look
> like, and the one in the screenshots page is what I've got now.  Am I
(Continue reading)

C Y | 2 May 2003 19:32
Picon
Favicon

Re: Colors in Emacs (Was Re: Font-lock in *maxima* buffer)


--- Jay Belanger <belanger <at> truman.edu> wrote:

> > I don't know if this is related or not, but for a while now I
> > haven't been able to get colors when I run a maxima session like I 
> > used to be able to.  The screenshot in the Maxima Book is what it 
> > used to look like, and the one in the screenshots page is what I've

> > got now.  Am I missing an option or has something changed?  
> 
> Something changed.  I seem to recall someone complaining about the
> coloring the the Maxima buffer (there's a phrase for it, which I
> can't recall.  Technicolor spaghetti?)

Ah.  I suppose I'm weird like that, but I liked the colors.  Immediate
feedback on whether I've got keywords spelled right, for example.  I
can see a lot of people not liking it though.

> (Note that I "seem" to recall.  It might have been the voices in my
> head.) 

I'm sure someone did complain - I would actually expect most users on
the list to not need the hand holding of colors, so I'm not surprised.

> Since comint-mode does it's own font-locking (and does it similar to
> TeXmacs, input one face, output another), and since I think that if
> Emacs already takes care of something, it probably shouldn't be
> overridden, I had comint-mode take care of the font-locking for the
> Maxima session.

(Continue reading)


Gmane