GNU bug report logs -
#40059
lisp-mode indentation not aligned vertically
Previous Next
Reported by: Spenser Truex <lists <at> spensertruex.com>
Date: Sat, 14 Mar 2020 04:57:01 UTC
Severity: normal
Tags: moreinfo, unreproducible
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40059 in the body.
You can then email your comments to 40059 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40059
; Package
emacs
.
(Sat, 14 Mar 2020 04:57:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Spenser Truex <lists <at> spensertruex.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 14 Mar 2020 04:57:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40059
; Package
emacs
.
(Sat, 14 Mar 2020 11:49:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 40059 <at> debbugs.gnu.org (full text, mbox):
Spenser Truex <lists <at> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40059
; Package
emacs
.
(Sun, 15 Mar 2020 16:29:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 40059 <at> debbugs.gnu.org (full text, mbox):
Noam Postavsky <npostavs <at> gmail.com> writes:
> Spenser Truex <lists <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40059
; Package
emacs
.
(Sun, 15 Mar 2020 17:38:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 40059 <at> debbugs.gnu.org (full text, mbox):
Spenser Truex <lists <at> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40059
; Package
emacs
.
(Sun, 15 Mar 2020 23:41:01 GMT)
Full text and
rfc822 format available.
Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):
Noam Postavsky <npostavs <at> gmail.com> writes:
> Spenser Truex <lists <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40059
; Package
emacs
.
(Mon, 16 Mar 2020 09:25:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 40059 <at> debbugs.gnu.org (full text, mbox):
> 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
Added tag(s) unreproducible and moreinfo.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 30 Mar 2020 21:39:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stefan Kangas <stefan <at> marxist.se>
:
You have taken responsibility.
(Sun, 03 May 2020 01:14:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Spenser Truex <lists <at> spensertruex.com>
:
bug acknowledged by developer.
(Sun, 03 May 2020 01:14:01 GMT)
Full text and
rfc822 format available.
Message #27 received at 40059-done <at> debbugs.gnu.org (full text, mbox):
martin rudalics <rudalics <at> 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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 31 May 2020 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 323 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.