Skip to content

Conversation

@benjamin-asdf
Copy link
Contributor

Issue:
cider-clojuredocs pops the doc buffer
but then still asks you for a symbol.

The issue is that
cider-clojuredocs-lookup passes nil to highlight-regexp,
which then throws an error.
It's only an issue when sym doesn't have a /.

and upstream cider-try-symbol-at-point handles all errors with
asking for a symbol.

Also sym can be something like . at this point so calling regexp-quote makes sense.

Issue: cider-clojuredocs pops the doc buffer but then still asks you for a symbol. Maybe only with emacs master highlight-regexp might have changed. The issue is that cider-clojuredocs-lookup passes nil to highlight-regexp, which then throws an error. and cider-try-symbol-at-point handles all errors with asking for a symbol.
(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

@vemv vemv closed this in 427360e Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants