Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cider-clojuredocs.el
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ opposite of what that option dictates."
(let ((docs (cider-sync-request:clojuredocs-lookup (cider-current-ns) sym)))
(pop-to-buffer (cider-create-clojuredocs-buffer (cider-clojuredocs--content docs)))
;; highlight the symbol in question in the docs buffer
(highlight-regexp (cadr (split-string sym "/")) 'bold)))
(highlight-regexp
(regexp-quote
(or (cadr (split-string sym "/"))
sym))
Copy link
Member

Choose a reason for hiding this comment

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

Could be desirable to extract this one to defun and then unit-test it

'bold)))

;;;###autoload
(defun cider-clojuredocs (&optional arg)
Expand Down