Skip to content

Commit

Permalink
[Fix clojure-emacs#2102] check-parens before middleware in cider-form…
Browse files Browse the repository at this point in the history
…at-buffer
  • Loading branch information
gonewest818 committed Feb 17, 2018
1 parent 36f1934 commit 6321d40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cider-interaction.el
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,7 @@ of the buffer into a formatted string."
(defun cider-format-buffer ()
"Format the Clojure code in the current buffer."
(interactive)
(check-parens)
(cider-ensure-connected)
(cider--format-buffer #'cider-sync-request:format-code))

Expand All @@ -1964,6 +1965,7 @@ of the buffer into a formatted string."
(defun cider-format-edn-buffer ()
"Format the EDN data in the current buffer."
(interactive)
(check-parens)
(cider-ensure-connected)
(cider--format-buffer (lambda (edn)
(cider-sync-request:format-edn edn (cider--pretty-print-width)))))
Expand Down

0 comments on commit 6321d40

Please # to comment.