summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Griffiths <mikey@cich.li>2015-03-29 20:27:35 +0100
committerMichael Griffiths <mikey@cich.li>2015-03-29 20:27:35 +0100
commitaf2648bce1089771484d7f60eea5d18382517aea (patch)
tree23d5a4c746148456cb01acb3f74ffcea5676c096
parentca62f4c5236ee589e30d664ba94aaaace9522fb6 (diff)
Pass right-margin opt in `cider--pprint-eval-form`
-rw-r--r--cider-interaction.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/cider-interaction.el b/cider-interaction.el
index 829e693b..ee93fa8a 100644
--- a/cider-interaction.el
+++ b/cider-interaction.el
@@ -1546,10 +1546,10 @@ Print its value into the current buffer."
(defun cider--pprint-eval-form (form)
"Pretty print FORM in popup buffer."
(let* ((result-buffer (cider-popup-buffer cider-result-buffer nil 'clojure-mode))
+ (handler (cider-popup-eval-out-handler result-buffer))
(right-margin (max fill-column
(1- (window-width (get-buffer-window result-buffer))))))
- (cider-interactive-pprint-eval form
- (cider-popup-eval-out-handler result-buffer))))
+ (cider-interactive-pprint-eval form handler right-margin)))
(defun cider-pprint-eval-last-sexp ()
"Evaluate the sexp preceding point and pprint its value in a popup buffer."