An earlier change to multi-file support stored the actual markers to the beginnings of the transaction/postings.
When reconcile would insert characters it would invalidate those marker and after many items and been
cleared could result in severe misalignment. This change brings back storing the line-numbers as reported by emacs.
ledger-report-save would fail if you entered a new report with a name. It wouldn't save the customization to the disk, and if you tried to save manually it would complain about an identical command.
Ledger-do-reconcile might be called indirectly (in the after-save-hook
for example) and one might not want this buffer she has buried to show
up again when she is saving another (even related) buffer.
Mostly went through and clarified variable names. Rather than "entry" for everything, use "transaction" and "posting" as appropriate to improve readability.
This could cause error when reconciling transaction that are included.
Some message should be shown to explain why nothing happen when
interactively call ledger-occur.
Well, we still deactivate it when regex is nil, but the function
should not look at previous value of ledger-occur-mode:
- the interactive function (ledger-occur) already do it, we don't need
to do it there,
- caller that want to deactivate the occur stuff only have to call
ledger-occur with a nil regex
- the old behavior make ledger-reconcile to turn off occur stuff if it
was already turn on, when what we do want is that the occur stuff
change to the new account.
ledger-add-entry now checks to see if more than the date was given at the prompt. If there is only a date it inserts the dat at the correct place in the ledger and puts the point at the end of the line for entering transaction details
* reconcile mode now places its window at the bottom of the ledger window it was called form and minimizes its height to the size of the recon buffer.
* It all specifically informs the user if there are no uncleared items.
* When reconcile mode is entered it sets the ledger-occur mode and scrolls the bottom of the visible buffer to the bottom of the ledger window ensuring transactions are visible.