Skip to content

Commit

Permalink
[Fix #360] Convert END to a marker in clojure-align
Browse files Browse the repository at this point in the history
  • Loading branch information
Malabarba committed Jan 16, 2016
1 parent 015cbf8 commit c27550f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ When called from lisp code align everything between BEG and END."
(point))))
(clojure-backward-logical-sexp)
(list (point) end)))))
(setq end (copy-marker end))
(save-excursion
(goto-char beg)
(while (clojure--find-sexp-to-align end)
Expand Down
6 changes: 6 additions & 0 deletions test/clojure-mode-indentation-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ x
:bbbb :b}
:bbbb :b}")

(def-full-align-test end-is-a-marker
"{:a {:a :a
:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa :a}
:b {:a :a
:aa :a}}")


;;; Misc

Expand Down

0 comments on commit c27550f

Please sign in to comment.