emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax for ?= in sh-mode


From: Stefan Monnier
Subject: Re: syntax for ?= in sh-mode
Date: Tue, 21 Sep 2004 16:00:49 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

>     Here is an example with indentation:
>           foo
>           + bar
>             * baz
>           + toto
>             / titi

>     And in sml-mode, if point is just before the first + and you hit C-M-t
>     you end up with

>           bar
>             * baz
>           + foo
>           + toto
>             / titi

> I guess that's an improvement, but I am not sure it is
> a very useful one.  I would encourage people to write these
> things with parentheses for increased clarity anyway,
> and with the parentheses, Emacs will indent correctly now.

Well, but it applies at many more places than just arithmetic.
E.g. the `,' that separates arguments in so many languages can be treated
similarly, so that C-M-t properly transposes two arguments.
Placing parentheses there would be excruciating.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]