diff --git a/CHANGELOG.md b/CHANGELOG.md index 80b0c00b..2121d996 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ### Bugs fixed +* Fix `clojure-align` when called from `clojure-ts-mode` major mode buffers + +### Bugs fixed + * [#671](https://github.com/clojure-emacs/clojure-mode/issues/671): Syntax highlighting for digits after the first in % args ## 5.18.1 (2023-11-24) diff --git a/clojure-mode.el b/clojure-mode.el index 40fb0924..8261d2bd 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -1469,7 +1469,7 @@ When called from lisp code align everything between BEG and END." (cl-incf count))) ;; Pre-indent the region to avoid aligning to improperly indented ;; contents (#551). Also fixes #360. - (indent-region (point) sexp-end) + (indent-region (point) (marker-position sexp-end)) (dotimes (_ count) (align-region (point) sexp-end nil `((clojure-align (regexp . clojure--search-whitespace-after-next-sexp)