Re: When to open the repository



On Fri, 2004-10-01 at 08:25, Raymond Toy wrote:

> The changes I have are minor, and are for code that's
> already downcased. 

OK. Unless I hear complaints from the other developers in the next
couple of days, I'll do the downcasing, commit, then declare the
repository open.

>  I hope, when you do the downcasing and indenting,
> that you'll use CL-style if, not emacs if.  (Emacs if-style has the
> "then" clause indented one level more than the "else" clause, because
> the "else" clause has a implicit progn.)

Yes. I didn't appreciate this problem when I first started working on
maxima, but I figured it out some time ago. By default, emacs will
indent "if" as follows:

(if (condition)
    (true-case)
  (false-case))

It isn't very common-lisp-like. If you add the following command to your
.emacs:

(setq lisp-indent-function 'common-lisp-indent-function)

the indentation will come out like this:

(if (condition)
    (true-case)
    (false-case))

All maxima developers using emacs should be using the
common-lisp-indent-function.

I came across another small problem while re-indenting the code. There
are many comments in the code that begin at the very left, but start
with a single ";". Emacs will indent these to the middle of the page.
The vast majority of the time, the intent was to have the comment flush
left. I wrote an emacs macro to replace all such single-;'s with
double-;'s. Emacs leaves double-; comments flush left.

I'll share the final set of emacs macros when I'm done.

--Jim