Fix focus behavior in CIDER mode for Emacs

Any reason to change buffer’s focus when displaying documentation?
diff --git a/emacs/emacs.d/elpa/cider-0.5.0/cider-interaction.el b/emacs/emacs.d/elpa/cider-0.5.0/cider-interaction.el
index 8f4b8cb..8bcccbf 100644
--- a/emacs/emacs.d/elpa/cider-0.5.0/cider-interaction.el
+++ b/emacs/emacs.d/elpa/cider-0.5.0/cider-interaction.el
@@ -1153,7 +1153,7 @@ if there is no symbol at point, or if QUERY is non-nil."
(defun cider-doc-handler (symbol)
"Create a handler to lookup documentation for SYMBOL."
(let ((form (format "(clojure.repl/doc %s)" symbol))
- (doc-buffer (cider-popup-buffer cider-doc-buffer t)))
+ (doc-buffer (cider-popup-buffer cider-doc-buffer nil)))
(cider-tooling-eval form
(cider-popup-eval-out-handler doc-buffer)
nrepl-buffer-ns)))

--

--

--

Engineering Leader | Author on Decision-Making.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adrien Mogenet

Adrien Mogenet

Engineering Leader | Author on Decision-Making.

More from Medium

Understanding Typescript Distributive Conditional Types with a Source Code Debugging Approach

Using NextJS API Routes as a BFF

JavaScript Variable Scope and Declaration

Developing a Replit.com template for Pascal using Nix