Skip to content

Small UX improvements for the nREPL messages buffer#3927

Merged
bbatsov merged 3 commits into
masterfrom
nrepl-messages-ux
May 21, 2026
Merged

Small UX improvements for the nREPL messages buffer#3927
bbatsov merged 3 commits into
masterfrom
nrepl-messages-ux

Conversation

@bbatsov
Copy link
Copy Markdown
Member

@bbatsov bbatsov commented May 21, 2026

A few quality-of-life tweaks for *nrepl-messages*. Auto-follow no longer rips windows you've scrolled back away from the latest entry, you can wipe the buffer with c (new nrepl-clear-messages), and M-x nrepl-show-messages pops it up without having to remember the template-generated name.

  • The commits are consistent with our contribution guidelines
  • You've added tests (if possible) to cover your change(s) - skipped; these are interactive UI changes with no straightforward Buttercup hook
  • All tests are passing (eldev test)
  • All code passes the linter (eldev lint)
  • You've updated the changelog
  • You've updated the user manual - n/a, the messages buffer isn't covered in the manual

bbatsov added 3 commits May 21, 2026 08:49
The auto-follow in nrepl-log-message unconditionally jerked any window
showing the messages buffer back to point-max on every new request or
response, which made it impossible to read history while traffic was
flowing.  Snapshot which windows were at end-of-buffer before the
insert and only scroll those; leave windows the user has scrolled back
alone.
Previously the only way to empty the messages log was M-x erase-buffer
after manually un-setting buffer-read-only.  Bind c in
nrepl-messages-mode to nrepl-clear-messages, which does it under
inhibit-read-only and refuses to run outside a messages buffer.
Previously the only way to find the messages buffer was to remember
its template-generated name and dig it out of the buffer list.  The
new command finds live nrepl-messages-mode buffers; with one
connection it pops it directly, with several it prompts.  Bundles a
CHANGELOG entry for all three nREPL log UX changes on this branch.
@bbatsov bbatsov merged commit a443a9a into master May 21, 2026
13 checks passed
@bbatsov bbatsov deleted the nrepl-messages-ux branch May 21, 2026 09:05
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