Skip to content

Commit 799b774

Browse files
kommenbbatsov
authored andcommitted
Fix "wrong-type-argument integerp" error in clojure-align with treesitter mode
1 parent 222fdaf commit 799b774

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
### Bugs fixed
66

7+
* Fix `clojure-align` when called from `clojure-ts-mode` major mode buffers
8+
9+
### Bugs fixed
10+
711
* [#671](https://github.com/clojure-emacs/clojure-mode/issues/671): Syntax highlighting for digits after the first in % args
812

913
## 5.18.1 (2023-11-24)

clojure-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ When called from lisp code align everything between BEG and END."
14691469
(cl-incf count)))
14701470
;; Pre-indent the region to avoid aligning to improperly indented
14711471
;; contents (#551). Also fixes #360.
1472-
(indent-region (point) sexp-end)
1472+
(indent-region (point) (marker-position sexp-end))
14731473
(dotimes (_ count)
14741474
(align-region (point) sexp-end nil
14751475
`((clojure-align (regexp . clojure--search-whitespace-after-next-sexp)

0 commit comments

Comments
 (0)