Skip to content

Fix #3307: Incorrect special-form eldocs #3358

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

Merged
merged 3 commits into from
Jun 24, 2023

Conversation

vemv
Copy link
Member

@vemv vemv commented Jun 23, 2023

Applies PR feedback to #3323, preserving attribution.

Closes #3307
Closes #3323

quanticle and others added 3 commits June 23, 2023 18:01
This fix is the CIDER companion to [this
PR](clojure-emacs/orchard#166) in orchard,
which lets us know if the symbol we're querying eldocs for is a
special form or an ordinary function.

This changes uses that information to deduplicate the arglists for the
special form. In the process, the change adds a
`cider-eldoc-format-special-form` function, which serves as a home for
special form formatting.

This change also adds a unit test for cider-eldoc to ensure that it
calls the appropriate formatting methods.
@vemv vemv requested a review from bbatsov June 23, 2023 19:47
Copy link
Member

@bbatsov bbatsov left a comment

Choose a reason for hiding this comment

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

LGTM

@bbatsov bbatsov merged commit 1367b25 into master Jun 24, 2023
@bbatsov
Copy link
Member

bbatsov commented Jun 24, 2023

Btw, I realize we never actually release an Orchard version feature the fix on the Clojure side of things...

@bbatsov bbatsov deleted the #3307-update-special-form-highlighting branch June 24, 2023 06:52
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.

Documentation highlighting appears to be incorrect for special forms
3 participants