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

Convert "See Also" text to buttons in *cider-clojuredocs* buffer #3093

Merged
merged 5 commits into from
Dec 2, 2021

Conversation

tongjie-chen
Copy link
Contributor

This "See Also" part in cider-clojuredocs buffer becomes clickable

@bbatsov
Copy link
Member

bbatsov commented Nov 24, 2021

I guess the CI is failing because of the broken indentation. Don't forget to also mention this in the changelog.

@@ -140,7 +144,8 @@ opposite of what that option dictates."
(defun cider-clojuredocs-lookup (sym)
"Look up the ClojureDocs documentation for SYM."
(let ((docs (cider-sync-request:clojuredocs-lookup (cider-current-ns) sym)))
(pop-to-buffer (cider-create-clojuredocs-buffer (cider-clojuredocs--content docs)))))
(pop-to-buffer (cider-create-clojuredocs-buffer (cider-clojuredocs--content docs)))
(highlight-regexp (car (last (split-string sym "/"))) 'bold)))
Copy link
Member

Choose a reason for hiding this comment

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

This seems unrelated to the button to me. Also if you know that split-string returns just two elements you can use directly cadr or nth.

@bbatsov bbatsov merged commit 2bcf576 into clojure-emacs:master Dec 2, 2021
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.

3 participants