* 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
* bug#40059: lisp-mode indentation not aligned vertically
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
0 siblings, 1 reply; 7+ messages in thread
From: Noam Postavsky @ 2020-03-14 11:47 UTC (permalink / raw)
To: Spenser Truex; +Cc: 40059
Spenser Truex <lists@spensertruex.com> writes:
> 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)
I'm not able to reproduce this. I tested on 27.0.90 and 26.3. I get
(:a :b
:c
:d
:e)
in both lisp-mode and emacs-lisp-mode.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#40059: lisp-mode indentation not aligned vertically
2020-03-14 11:47 ` Noam Postavsky
@ 2020-03-15 16:00 ` Spenser Truex
2020-03-15 17:36 ` Noam Postavsky
0 siblings, 1 reply; 7+ messages in thread
From: Spenser Truex @ 2020-03-15 16:00 UTC (permalink / raw)
To: Noam Postavsky, 40059
Noam Postavsky <npostavs@gmail.com> writes:
> Spenser Truex <lists@spensertruex.com> writes:
>
>> Here is a very simple example:
>>
>> (:a :b
>> :c
>> :d
>> :e)
>
> I'm not able to reproduce this. I tested on 27.0.90 and 26.3. I get
>
> (:a :b
> :c
> :d
> :e)
>
> in both lisp-mode and emacs-lisp-mode.
Just to be clear, the process is such:
0. Open a buffer (eg. *scratch*) and M-x lisp-mode
1. Paste the sample into a buffer with the cursor at |
|(:a :b
:c
:d
:e)
2. Run `indent-sexp'
3. Should look like this if reproduced successfully
(:a :b
:c
:d
:e)
If that doesn't work, try placing the cursor on each line and run
`indent-for-tab-command'.
--
Spenser Truex
spensertruex.com
San Francisco, USA
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#40059: lisp-mode indentation not aligned vertically
2020-03-15 16:00 ` Spenser Truex
@ 2020-03-15 17:36 ` Noam Postavsky
2020-03-15 23:38 ` Spenser Truex
0 siblings, 1 reply; 7+ messages in thread
From: Noam Postavsky @ 2020-03-15 17:36 UTC (permalink / raw)
To: Spenser Truex; +Cc: 40059
Spenser Truex <lists@spensertruex.com> writes:
>
> 0. Open a buffer (eg. *scratch*) and M-x lisp-mode
> 1. Paste the sample into a buffer with the cursor at |
> |(:a :b
> :c
> :d
> :e)
> 2. Run `indent-sexp'
> 3. Should look like this if reproduced successfully
>
> (:a :b
> :c
> :d
> :e)
>
> If that doesn't work, try placing the cursor on each line and run
> `indent-for-tab-command'.
I had only tried indent-region before, but neither of these reproduce
for me either.
I don't think you've mentioned which Emacs versions you are seeing this
with.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#40059: lisp-mode indentation not aligned vertically
2020-03-15 17:36 ` Noam Postavsky
@ 2020-03-15 23:38 ` Spenser Truex
2020-03-16 9:24 ` martin rudalics
0 siblings, 1 reply; 7+ messages in thread
From: Spenser Truex @ 2020-03-15 23:38 UTC (permalink / raw)
To: 40059
Noam Postavsky <npostavs@gmail.com> writes:
> Spenser Truex <lists@spensertruex.com> writes:
>>
>> 0. Open a buffer (eg. *scratch*) and M-x lisp-mode
>> 1. Paste the sample into a buffer with the cursor at |
>> |(:a :b
>> :c
>> :d
>> :e)
>> 2. Run `indent-sexp'
>> 3. Should look like this if reproduced successfully
>>
>> (:a :b
>> :c
>> :d
>> :e)
>>
>> If that doesn't work, try placing the cursor on each line and run
>> `indent-for-tab-command'.
>
> I had only tried indent-region before, but neither of these reproduce
> for me either.
>
> I don't think you've mentioned which Emacs versions you are seeing this
> with.
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
--
Spenser Truex
spensertruex.com
San Francisco, USA
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#40059: lisp-mode indentation not aligned vertically
2020-03-15 23:38 ` Spenser Truex
@ 2020-03-16 9:24 ` martin rudalics
2020-05-03 1:13 ` Stefan Kangas
0 siblings, 1 reply; 7+ messages in thread
From: martin rudalics @ 2020-03-16 9:24 UTC (permalink / raw)
To: Spenser Truex, 40059
> 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?
martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#40059: lisp-mode indentation not aligned vertically
2020-03-16 9:24 ` martin rudalics
@ 2020-05-03 1:13 ` Stefan Kangas
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Kangas @ 2020-05-03 1:13 UTC (permalink / raw)
To: martin rudalics; +Cc: Spenser Truex, 40059-done
martin rudalics <rudalics@gmx.at> 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
^ 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).