From 27991cb6785bb9c1b6b158dccac5823510f8a6d4 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 20 May 2026 11:57:00 +0300 Subject: [PATCH] Use `indent-according-to-mode' in `cider-maybe-insert-multiline-comment' `clojure-indent-line' was the only direct indent-function call in cider tied to a specific major mode. Replacing it with `indent-according-to-mode' dispatches via the active mode's `indent-line-function', so the call works identically in `clojure-mode' (the function happens to be `clojure-indent-line') and in `clojure-ts-mode' (where it's the tree-sitter-driven `clojure-ts-indent-line'), without cider having to know which mode is active. --- lisp/cider-eval.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/cider-eval.el b/lisp/cider-eval.el index 3edd2e516..9c5c92e5c 100644 --- a/lisp/cider-eval.el +++ b/lisp/cider-eval.el @@ -377,7 +377,7 @@ RESULT will be preceded by COMMENT-PREFIX. CONTINUED-PREFIX is inserted for each additional line of output. COMMENT-POSTFIX is inserted after final text output." (unless (string= result "") - (clojure-indent-line) + (indent-according-to-mode) (let ((lines (split-string result "[\n]+" t)) (beg (point)) (col (current-indentation)))