technomancy/clojure-mode — Issue #63: Loading the slime payload upsets clojure-mode's formatting
Author: pjstadig
Created: 2012-02-03 20:27:25+00:00
State: open

When given a form like

(deftest ^{:regression true} test-blah
...)

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:

1. Format the test source file with clojure-mode, and notice that "..." is indented two spaces.
2. M-x clojure-jack-in
3. C-c C-k to compile the test namespace.
4. Format the source file with clojure-mode and notice that the "..." is indented to line up with the metadata map.
5. Open clojure-mode.el and C-c v.
6. Go back to the test source file, format with clojure-mode, and notice that the "..." is indented two spaces.

After performing a bisect it appears this problem was introduced in cdfc45.