Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let *1 be set properly when pretty-printing, fixes gh-468 #471

Merged
merged 1 commit into from
Feb 5, 2014

Conversation

cemerick
Copy link
Contributor

@cemerick cemerick commented Feb 5, 2014

EOM

@@ -993,7 +993,7 @@ Print its value into the current buffer."
(interactive)
(let ((form (cider-last-sexp))
(result-buffer (cider-popup-buffer cider-result-buffer nil)))
(cider-tooling-eval (format "(clojure.pprint/pprint %s)" form)
(cider-tooling-eval (format "(let [x %s] (clojure.pprint/pprint x) x)" form)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems we can extract (format "(let [x %s] (clojure.pprint/pprint x) x)" form) is a helper function to avoid its constant repetition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree; a helper wasn't there before, so I thought the current arrangement might be intentional / preferred. Will fix.

@cemerick
Copy link
Contributor Author

cemerick commented Feb 5, 2014

pprint form helper fn added.

@bbatsov
Copy link
Member

bbatsov commented Feb 5, 2014

Excellent! 👍

bbatsov added a commit that referenced this pull request Feb 5, 2014
Let *1 be set properly when pretty-printing, fixes gh-468
@bbatsov bbatsov merged commit 675ef05 into clojure-emacs:master Feb 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants