-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Loading the slime payload upsets clojure-mode's formatting #63
Comments
Enabling clojure-mode to respond to indentation-update messages makes it update (get 'deftest 'clojure-indent-function) from 'defun to 1, which is the source of this weird indentation behavior. |
The table of special indentations in clojure-mode probably needs to get into swank-clojure somehow (or have :indent metadata set on them in clojure.core). The hook is so you can write macros, and set ^{:indent n} so they indent properly when used. If it needs reverting until a swank-clojure side change is made, then so be it. |
In case it helps diagnose or point to a fix, this works around the issue https://gist.github.com/182e50836b1e7cd78557 (using checkouts of clojure-mode and swank-clojure) |
Sorry, we've trimmed this out of clojure-mode; it now only contains code for static operations on buffers. |
When given a form like
clojure-mode will format it by indenting the "..." two spaces from the margin. After M-x clojure-jack-in, clojure-mode will indent the "..." underneath the metadata map.
Repro steps using swank-clojure 1.3.4 and clojure-mode c858a:
After performing a bisect it appears this problem was introduced in cdfc45.
The text was updated successfully, but these errors were encountered: