Craig Earls <[email protected]> writes: > I think I have figured out what is going on here. I pushed a fix to > the entity boundary detection code and fixes all of Christoper's issue > with his example file.
Thank you! Things are certainly much, much better. I still see some more minor problems, which it might be possible to address while the details are still fresh? With the attached file: * everything is statically fontified correctly, but the current-transaction/directive overlay is odd. As I move down the file, line by line (with C-n) the overlay is initially applied line-by-line, but after moving off line 7 the overlay stays where it is until point is on line 15, at which point line 14 is highlighted. Similarly it then stays there until point is on line 21, where line 20 is highlighted. (If I had to guess, I would point the finger at the fact that those comment lines have embedded dates). * similarly, when point is anywhere on the first directive line (line 30), the current-transaction/directive overlay highlights line 27. Once point is anywhere on line 31, line 30 is highlighted. I don't really understand what's going on here. * with point on line 33 or 34, the overlay correctly highlights the first transaction. When point moves to line 35, only the two postings in the transaction are highlighted. Similarly, with point on lines 37-40, the second transaction is highlighted in full, but on line 41 only line 40 is highlighted. I would guess that the amusing account number, which could possibly be construed as a date, is confusing the transaction parser. * finally, at least for this batch, M-n is bound to a useful command, `ledger-navigate-next-xact-or-directive'; it might be nice for it to treat comment blocks differently, but I can live with what it does. M-p is bound to `ledger-navigate-prev-xact', which is not a command, and also seems asymmetrical in behaviour (I can't navigate back using M-p what I have navigated forward throgh M-n).
;;;;; Examples ;; ;; Monthly income/expense totals, excluding exceptional income: ;; ledger -BEMn register \( Income or Expenses \) and not \( Trust or Income:Gifts \) ;; ;; Sums for household reconciliation: ;; ledger -BE --begin 2011/05/03 --end 2011/06/02 register Expenses:Household: ;; ledger -BEMn register Expenses:Household ;; ;; Oyster topups: ;; ledger -BEMn register Expenses:Transport and payee TfL ;; ;; Normal income/expenses for unpaid Teclo period: ;; ledger -BER --begin 2010/09/01 --end 2011/07/31 bal \( Income or Expenses \) and not \( Trust or Income:Gifts or Income:.*:Interest \) ;; ;; Teclo expenses register report: ;; ledger -BR register Reimbursements:Teclo ;; ;; Yearly summaries: ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 bal Income:Taxable ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 --by-payee reg Income:Taxable ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 print @Halifax and Interest | ledger -f - bal ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 print @Halifax and Reward | ledger -f - bal ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 print @Halifax and Income | ledger -f - bal ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 print @Goldsmiths and Income | ledger -f - bal ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 print @Teclo and Income | ledger -f - bal ;; ledger -BR --begin 2011-04-06 --end 2012-04-05 print @University\ of\ London and Income | ledger -f - bal ;;;;; 2006 P 2006/03/04 $ £1.99 P 2006/03/04 € £1.89 2006/03/10 Opening balance Assets:54945/23481 £4000 Equity:Opening Balance 2006/05/15 Interest Income:Taxable:Interest £-28.75 Expenses:Tax:Income Tax £5.75 Assets:54945/23481
Again, thank you for the fixes. Best wishes, Christophe
-- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
