Skip to content

clojure-align misaligns code that is improperly indented #551

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

Closed
kylc opened this issue Jan 24, 2020 · 0 comments
Closed

clojure-align misaligns code that is improperly indented #551

kylc opened this issue Jan 24, 2020 · 0 comments

Comments

@kylc
Copy link
Contributor

kylc commented Jan 24, 2020

Expected behavior

Using clojure-align on a block like this, which is not properly indented to
begin with:

(let [a-long-name 10
b 20])

Should result in properly indented and aligned code, like this:

(let [a-long-name 10
      b           20])

Actual behavior

A single clojure-align application results in this:

(let [a-long-name 10
      b                 20])

A second application arrives at the proper result.

This is due to the clojure-align implementation, which first aligns the region as-is, then performs an indentation step.

Steps to reproduce the problem

Use clojure-align on improperly indented blocks of code, as above.

Environment & Version information

clojure-mode version information

clojure-mode-20191112.1948

Emacs version

Emacs 26.3

Operating system

Linux

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