unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40059: lisp-mode indentation not aligned vertically
@ 2020-03-14  4:46 Spenser Truex
  2020-03-14 11:47 ` Noam Postavsky
  0 siblings, 1 reply; 7+ messages in thread
From: Spenser Truex @ 2020-03-14  4:46 UTC (permalink / raw)
  To: 40059


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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-03  1:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-14  4:46 bug#40059: lisp-mode indentation not aligned vertically Spenser Truex
2020-03-14 11:47 ` Noam Postavsky
2020-03-15 16:00   ` Spenser Truex
2020-03-15 17:36     ` Noam Postavsky
2020-03-15 23:38       ` Spenser Truex
2020-03-16  9:24         ` martin rudalics
2020-05-03  1:13           ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).