"Stavros Macrakis" <stavros.macrakis@verizon.net> writes:
> > Can any of the emacs lisp files for maxima reformat code,
> > ie, putting in indentation for block structure,
>
> maxima.el (in interfaces/emacs/emaxima/) claims to do some smart
> formatting, but it has some weird conventions. For example, to turn on
> smart formatting, you must (setq maxima-indent-line 'perhaps-smart)
> BEFORE loading the maxima.el file.
>
> Its formatting is also buggy.
...
Well, it doesn't actually claim to be smart, only perhaps-smart. (I
thought calling it 'not-really-that-smart-but-gives-indentation-a-try
a bit too long for a name.) I had tried to create an indenter (it
doesn't attempt to do anything with line-breaks) that would take into
account various constructs (it goes back and searches for blocks,
parentheses, etc.) It worked in some simple cases that I tried out,
so I left it in maxima.el, but I never felt it was good enough to make
it the default indentation. After Thanksgiving, I'll work on it some
more, to take into account the problems you mentioned.
(Or, perhaps I can find an indenter/formatter from a mode from a
different language that I could modify for Maxima.)
Jay