[Top][All Lists]
[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
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/10
- Re: syntax for ?= in sh-mode, Dan Nicolaescu, 2004/09/10
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/12
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/13
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/15
- Message not available
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/17
- Re: syntax for ?= in sh-mode, Stefan, 2004/09/18
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/19
- Re: syntax for ?= in sh-mode, Stefan, 2004/09/20
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/21
- Re: syntax for ?= in sh-mode,
Stefan Monnier <=
- Re: syntax for ?= in sh-mode, Miles Bader, 2004/09/21
- Re: syntax for ?= in sh-mode, Stefan Monnier, 2004/09/21
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/22
- Re: syntax for ?= in sh-mode, Stefan Monnier, 2004/09/22
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/24
- Re: syntax for ?= in sh-mode, Stefan, 2004/09/24
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/25
- Re: syntax for ?= in sh-mode, Stefan, 2004/09/25
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/26