-
-
Notifications
You must be signed in to change notification settings - Fork 247
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 bug with comments/forms following a closing delimiter #525
Comments
@Malabarba is our master of alignment. :-) Perhaps he has an idea why this is happening? |
I experienced a similar issue with long keys destructuring (see screencast): (let [{:keys [one two three
four five six
seven eight nine] :as whole} bigstuff]) Setting |
Changing {:x [123]
:abcd [123
456]
:long-var-name [789]} |
Hi everyone. I can verify all of the bugs and solutions mentioned. Sadly all I can say is that it's either a bug in The Emacs alignment engine is pretty dense and I remember when I first implemented this feature in clojure-mode it was very hit-or-miss. Anyone who wants to help is invited to read through the docs for |
Expected behavior
M-x clojure-align
on the following forms should be a no-op:Actual behavior
The second "column" is pushed farther and farther to the right every time
clojure-align
is called.Steps to reproduce the problem
Execute
clojure-align
on any hashmap or function defined inclojure-cond-align-forms
, which has a symbol or comment following a closing delimiter that is on a different line from its opening delimiter:The offending delimiter must belong to the second or greater "column" of the alignment
Environment & Version information
clojure-mode version information
Include here the version string displayed by
M-x clojure-mode-display-version
. Here's an example:Emacs version
26.2
Operating system
macOS 10.14
The text was updated successfully, but these errors were encountered: