File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
src/cider/nrepl/middleware
test/clj/cider/nrepl/middleware Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 22
33## master (unreleased)
44
5+ ## Bugs fixed
6+
7+ * [ CIDER #3684 ] ( https://github.com/clojure-emacs/cider/issues/3684 ) : Don't apply indentation inference for ` :style/indent nil ` metadata.
8+
59## 0.49.0 (2024-06-02)
610
711### Changes
Original file line number Diff line number Diff line change 3131 [m]
3232 (and (:macro m)
3333 (:arglists m)
34- (not (:style/indent m ))
35- (not (:indent m ))
34+ (not (contains? m :style/indent ))
35+ (not (contains? m :indent ))
3636 (if-let [namespace-name (some-> (cond
3737 (instance? Namespace (:ns m)) ; ; JVM clojure
3838 (-> m :ns ns-name)
Original file line number Diff line number Diff line change 208208(defmacro macro-without-style-indent-1 [opts & body])
209209(defmacro macro-without-style-indent-2 [opts body])
210210(defmacro macro-without-style-indent-3 [opts baddy])
211+ (defmacro macro-with-explicitly-nil-style-indent {:style/indent nil } [opts & body])
211212
212213(def mock-msg (reify nrepl.transport/Transport
213214 (recv [this])
226227 (is (= " 1"
227228 (-> interns (get 'macro-without-style-indent-2) :style/indent )))
228229 (is (= nil
229- (-> interns (get 'macro-without-style-indent-3) :style/indent ))))))
230+ (-> interns (get 'macro-without-style-indent-3) :style/indent )))
231+ (is (= nil
232+ (-> interns (get 'macro-with-explicitly-nil-style-indent) :style/indent ))))))
230233
231234(deftest inferrable-indent?-test
232235 (testing " clojure.* macros are not inferrable"
You can’t perform that action at this time.
0 commit comments