clojure-emacs/clojure-mode

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

samwagg opened this issue · 0 comments

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