GNU bug report logs - #21463
25.0.50; lisp-indent-line indents wrongly for multiline sexps

Previous Next

Package: emacs;

Reported by: bruce.connor.am <at> gmail.com

Date: Fri, 11 Sep 2015 21:00:03 UTC

Severity: minor

Found in version 25.0.50

To reply to this bug, email your comments to 21463 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21463; Package emacs. (Fri, 11 Sep 2015 21:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to bruce.connor.am <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 11 Sep 2015 21:00:04 GMT) Full text and rfc822 format available.

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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; lisp-indent-line indents wrongly for multiline sexps
Date: Fri, 11 Sep 2015 21:58:58 +0100
This is how the following sexp gets indented by lisp-indent-line

((x
  y) a
  2)

This is how (I believe) it should be indented

((x
  y) a
 2)


This affects emacs-lisp and any other mode that derives from lisp-mode.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21463; Package emacs. (Sat, 12 Sep 2015 01:05:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Artur Malabarba <bruce.connor.am <at> gmail.com>
Cc: 21463 <at> debbugs.gnu.org
Subject: Re: bug#21463: 25.0.50;
 lisp-indent-line indents wrongly for multiline sexps
Date: Fri, 11 Sep 2015 21:03:59 -0400
> This is how the following sexp gets indented by lisp-indent-line
> ((x
>   y) a
>   2)
>
> This is how (I believe) it should be indented
>
> ((x
>   y) a
>  2)

I'd argue that for Scheme, it should be

  ((x
    y) a
       2)

But in either case, the current indentation indeed looks wrong.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21463; Package emacs. (Sat, 12 Sep 2015 16:29:02 GMT) Full text and rfc822 format available.

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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 21463 <at> debbugs.gnu.org
Subject: Re: bug#21463: 25.0.50; lisp-indent-line indents wrongly for
 multiline sexps
Date: Sat, 12 Sep 2015 17:28:01 +0100
> I'd argue that for Scheme, it should be
>
>   ((x
>     y) a
>        2)

I see. In Clojure, the 2 would be on the second column. So I guess
there's no catch all solution here.
Should this be a var for the mode to set, then?

> But in either case, the current indentation indeed looks wrong.

Yes.




This bug report was last modified 9 years and 282 days ago.

Previous Next


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