Subject: bug#40059: closed (Re: bug#40059: lisp-mode indentation not aligned vertically)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 03 May 2020 01:14:01 +0000

Your bug report

#40059: lisp-mode indentation not aligned vertically

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40059: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40059
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#40059: lisp-mode indentation not aligned vertically
From: Stefan Kangas <[email-masked]>
To: martin rudalics <[email-masked]>
Cc: Spenser Truex <[email-masked]>, [email-masked]
Date: Sun, 03 May 2020 03:13:08 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

martin rudalics <[email-masked]> writes:

>> Here is my M-x version
>> GNU Emacs 27.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-07
>
> Have you tried with emacs -Q?

More information was requested, but none was given within 6 weeks, so
I'm closing this bug.  It was already tagged unreproducible.

If this is still an issue, please reply to this email (use "Reply to
all" in your email client) and we can reopen the bug report.

Best regards,
Stefan Kangas

Subject: lisp-mode indentation not aligned vertically
From: Spenser Truex <[email-masked]>
To: [email-masked]
Date: Fri, 13 Mar 2020 21:46:48 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

This code sample demonstrates what I consider to be a bug in the
lisp-mode indentation.

Here is a very simple example:

(:a :b
 :c
    :d
 :e)

Here it is in an actual use case (defining Common Lisp packages)
(defpackage :example
  (:use :cl)

  ;; Here is the weird part:
  (:export :thing1
   :thing2
           :thing3
    :thing4
           :thing5))

A sane, non-buggy indentation would be this:
(defpackage :example
  (:use :cl)

  ;; These are aligned vertically:
  (:export :thing1
           :thing2
           :thing3
           :thing4
           :thing5))

This seems to be primarily caused by the keyword argument as the first
element of the unquoted list.

This is especially an issue if using aggressive formatting like
aggressive indent mode. <https://github.com/Malabarba/aggressive-indent-mode/issues/122>

-- 
Spenser Truex
spensertruex.com
SFSU Computer Science