Ledger won't visit the correct place in source file from the Ledger Check buffer
Using the freshest ELPA version, run the ledger check function from the menu. You should be able to hit <RET> and have it go to that place in the buffer. If will go nearly to the beginning of the buffer
This is because the Ledger Check report uses EMACS markers while the visit source code expect line numbers, which is what the various ledger reports will put out.
I have a fix ready, but i have just move to a new machine and haven't gotten my GITHUB authentication working yet.
I see that this particular issue was resolved in #452. I was spending some time refactoring ledger-check.el and modernizing the Elisp when I noticed that it seems like the ledger-report functionality should just subsume it?
The latter already supports:
- Refreshing the output (including automatically when saving the ledger source buffer)
- The major mode derives from
special-modeas is appropriate
And does not have some of the following bugs I noticed:
- "No errors" is inserted in the buffer even when there are errors, if those errors could not be parsed
- ledger-check does not respect the
ledger-binary-pathcustomization.
What are your thoughts on making ledger-check be basically a wrapper around ledger-report which simply passes in some special report command that just outputs any errors? (E.g., we can move the error-parsing logic to ledger-report which seems like a nice thing to have there anyway).