Skip to content

Commit c27550f

Browse files
committed
[Fix #360] Convert END to a marker in clojure-align
1 parent 015cbf8 commit c27550f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

clojure-mode.el

+1
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ When called from lisp code align everything between BEG and END."
822822
(point))))
823823
(clojure-backward-logical-sexp)
824824
(list (point) end)))))
825+
(setq end (copy-marker end))
825826
(save-excursion
826827
(goto-char beg)
827828
(while (clojure--find-sexp-to-align end)

test/clojure-mode-indentation-test.el

+6
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,12 @@ x
495495
:bbbb :b}
496496
:bbbb :b}")
497497

498+
(def-full-align-test end-is-a-marker
499+
"{:a {:a :a
500+
:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa :a}
501+
:b {:a :a
502+
:aa :a}}")
503+
498504

499505
;;; Misc
500506

0 commit comments

Comments
 (0)