Skip to content

Conversation

@bcc32
Copy link
Collaborator

@bcc32 bcc32 commented Dec 5, 2025

  1. Implement missing redo command
  2. Correctly read input from current buffer like ledger-check-buffer's docstring
    says
  3. Improve window handling logic
  4. Derive major mode from special-mode

bcc32 added 9 commits December 5, 2025 01:36
shell-command with OUTPUT-BUFFER=t will insert the output after point in the
current buffer, so point is not moved at all.
- Issue a user-error when attempting to jump to a nonexistent check buffer.
- Pass BUFFER-OR-NAME directly to kill-buffer
- Remove unused _buf variable
Previously, ledger-check-buffer was just getting its input from the default
journal file (e.g., configured by ~/.ledgerrc).

This has the unfortunate drawback of causing the errors reported by ledger to
come from a file called "", which is a little confusing.

Update ledger-report-visit-source to visit the marker's buffer rather than the
file name, which is now wrong.
This gives several advantages by default:
1. Keys that normally insert characters are unbound, rather than triggering a
   buffer-read-only error.
2. The buffer is read-only by default.
3. special-mode has useful key bindings for report-like buffers.
Rather than forcibly shrinking the window, pass the appropriate actions to
pop-to-buffer to allow the user to override the display behavior.
There's no behavior difference with the conditional because the removed capture
group would have always matched and returned non-nil (but the match may have
been empty).
@bcc32 bcc32 marked this pull request as draft December 5, 2025 06:43
@bcc32
Copy link
Collaborator Author

bcc32 commented Dec 5, 2025

Marking this PR as a draft because I'd like to discuss in #450 whether we should
actually just remove this mode in favor of implementing something via
ledger-reports.

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