GNU bug report logs - #21922
Indentation of Emacs Lisp list constants is surprising

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Sat, 14 Nov 2015 18:31:01 UTC

Severity: minor

Merged with 27646

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 21922 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Clément Pit--Claudel <clement.pitclaudel <at> live.com>,
 21922 <at> debbugs.gnu.org
Subject: Re: bug#21922: Indentation of Emacs Lisp list constants is surprising
Date: Mon, 16 Nov 2015 02:33:16 +0200
Hi Clément,

On 11/14/2015 08:29 PM, Clément Pit--Claudel wrote:

> I'm posting this following a suggestion from Stefan on a discussion on
> Emacs' stackexchange site at https://emacs.stackexchange.com/questions/16942/

See Stefan's comment under your question. I also think it's a bug.

> Is there a reason for this behaviour? I could possibly understand it for
> back-quoted lists, as it would yield better indentation for macros, but
> what about lists?

We'll have to keep back-quoted lists an exception either way, for 
macros, and because of that we'll sometimes mis-indent "value" lists as 
well, because it can be handy to use backquotes for them, too.

That might be the main reason we haven't bothered to fix this yet. But 
someone should look into fixing the straight-quote case at least, and 
propose a patch.

> On stackexchange, Oleh suggested using
>
> (setq lisp-indent-function 'common-lisp-indent-function)

We recommend against this, e.g. because it would cause a lot of 
indentation changes in the Emacs codebase.





This bug report was last modified 3 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.