Add cider-macrostep-expand-all for one-shot full expansion - #3978
Merged
Conversation
`cider-macrostep-expand-all' (bound to `a' in `cider-macrostep-mode') fully expands the form before point in one step via `macroexpand-all', for when you don't want to step down level by level. Unlike the stepwise command it doesn't require the head to be a macro, since a recursive expansion can still reach macros in nested sub-forms. Generalizes the internal expander helper to take the expander name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A small follow-up to the inline macrostep work:
cider-macrostep-expand-all(bound toaincider-macrostep-mode) fully expands the form before point in one step viamacroexpand-all, for when you don't want to step down level by level to get to the bottom.A couple of details:
edoes), since a recursive expansion can reach macros nested under a non-macro head likedoorlet.Reuses the existing overlay/collapse machinery, so the result is a single collapsible expansion just like a stepwise one. The internal expander helper was generalized to take the expander name.
Also adds documentation for the inline macrostep flow as a whole - the manual only covered the separate-buffer commands until now, so the new section documents
cider-macrostep-expand, the mode's keybindings (includinga), the expandable-head highlighting/navigation and gensym coloring, and the relevant options.