From 15d838d1f86b41e303e392d78eaac970311594cb Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Wed, 13 Feb 2013 13:23:04 -0700 Subject: Bug 893 Ledger reconcile loses alignment 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. --- lisp/ldg-xact.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp/ldg-xact.el') diff --git a/lisp/ldg-xact.el b/lisp/ldg-xact.el index ab2c34f4..4b73b2ea 100644 --- a/lisp/ldg-xact.el +++ b/lisp/ldg-xact.el @@ -74,5 +74,7 @@ (ledger-context-field-value context-info 'payee) nil)))) +(defsubst ledger-goto-line (line-number) + (goto-char (point-min)) (forward-line (1- line-number))) (provide 'ldg-xact) \ No newline at end of file -- cgit v1.2.3