Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
samwagg opened this issue Jan 23, 2022 · 0 comments

Comments

@samwagg
Copy link
Contributor

samwagg commented Jan 23, 2022

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

samwagg added a commit to samwagg/clojure-mode that referenced this issue Jan 23, 2022
Alignment wasn't working properly when nested, multi-line sexps were followed by margin comments.
samwagg added a commit to samwagg/clojure-mode that referenced this issue Feb 6, 2022
Alignment wasn't working properly when nested, multi-line sexps were followed by margin comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant