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

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

bug#21922: Indentation of Emacs Lisp list constants is surprising


From: Eli Zaretskii
Subject: bug#21922: Indentation of Emacs Lisp list constants is surprising
Date: Sun, 15 Nov 2015 21:28:53 +0200

> From: Clément Pit--Claudel <clement.pitclaudel@live.com>
> Date: Sat, 14 Nov 2015 13:29:54 -0500
> 
> I'm posting this following a suggestion from Stefan on a discussion on
> Emacs' stackexchange site at https://emacs.stackexchange.com/questions/16942/
> 
> Emacs' indentation of Emacs Lisp code is really great, except for one thing:
> 
> (defconst one-to-ten '(one two three
>                            four five six seven
>                            eight nine ten))
> 
> Is this actually the preferred way to indent this block? As opposed to
> 
> (defconst one-to-ten '(one two three
>                        four five six seven
>                        eight nine ten))
> 
> I find it especially confusing when compared to the default for alists:
> 
> (defconst one-to-ten '((one . 1) (two . 2) (three . 3)
>                        (four . 4) (five . 5) (six . 6) (seven . 7)
>                        (eight . 8) (nine . 9) (ten . 10)))
> 

FWIW, Stefan was wrong: Emacs behaved like that since at least
Emacs 22, so recent changes didn't change this in any way.





reply via email to

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