Skip to content

Illustrate the form selection modes with screencasts - #4178

Merged
bbatsov merged 2 commits into
masterfrom
docs-selection-gifs
Aug 30, 2026
Merged

Illustrate the form selection modes with screencasts#4178
bbatsov merged 2 commits into
masterfrom
docs-selection-gifs

Conversation

@bbatsov

@bbatsov bbatsov commented Aug 28, 2026

Copy link
Copy Markdown
Member

The selection rules landed as prose and tables in #4174, which is accurate but hard to picture. Two short screencasts now show them.

The first runs all three targets over the same expression: kbd:[C-x C-e] with the cursor after (* 2 3), then cider-eval-sexp-at-point with the cursor on it (same result, without moving to the end), then kbd:[C-M-x] from inside the enclosing form.

The second shows the macroexpansion wrinkle: the cursor sits on the bare symbol when, and what gets expanded is the whole when form.

Both are recorded against a real nREPL connection, so those are CIDER's own evaluation overlays and its real macroexpansion buffer, not a mock-up or a highlight faked for the camera. 32KB and 71KB, in line with the existing cider-inspector.gif.

The selection rules were written out in prose and tables, which is
accurate but hard to picture. Two short screencasts now show them: the
three ways to pick a form, evaluated one after another on the same
expression, and macroexpansion widening from a bare symbol to the call
around it.

Both are recorded against a real REPL, so what you see is CIDER's own
evaluation overlays and macroexpansion buffer rather than a mock-up.
The option's whole payload is a transient highlight, so prose describing
it is doing the reader no favours. The screencast shows the same line
evaluated two ways, with the keys on screen, so the difference in what
each command picked is visible rather than described.
@bbatsov
bbatsov force-pushed the docs-selection-gifs branch from ad03c04 to 46b15e3 Compare August 30, 2026 06:29
@bbatsov
bbatsov merged commit 778ecd0 into master Aug 30, 2026
15 checks passed
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.

1 participant