Skip to content

Alignment: nested, multi-line sexps with margin comments result in incorrect indentation. #608

Closed
@samwagg

Description

@samwagg

PR: #609

Expected behavior

Alignment should work correctly when nested, multi-line sexps have margin comments.

Actual behavior

Alignment breaks.

Steps to reproduce the problem

Try aligning the following:

(let [:x (+ 2 3
            3 4) ; comment 
      :y (+ 1 2)])

Note the incorrect result:

(let [:x         (+ 2 3
           3 4) ; comment 
     :y         (+ 1 2)])

Environment & Version information

clojure-mode version

Hm, clojure-mode-display-version is returning clojure-mode (version nil). Packages is showing 20201001.1449. I have also reproduced in a unit test in the latest on master.

Emacs version

27.2

Operating system

mac os Big Sur 11.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions