summaryrefslogtreecommitdiff
path: root/ledger.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-10 07:49:18 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:58 -0400
commit80492683e5b7e29ff8c33bb228be235eda69edce (patch)
treef318d2db93aba4b35530407ead46c3dec121b168 /ledger.el
parentce6bf5353a1b2bb09053cd80f8d5a0eef200b87e (diff)
downloadfork-ledger-80492683e5b7e29ff8c33bb228be235eda69edce.tar.gz
fork-ledger-80492683e5b7e29ff8c33bb228be235eda69edce.tar.bz2
fork-ledger-80492683e5b7e29ff8c33bb228be235eda69edce.zip
(ledger-do-reconcile): Fixed a marker problem that was causing entries
to not be reconciled.
Diffstat (limited to 'ledger.el')
-rw-r--r--ledger.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/ledger.el b/ledger.el
index 2c0f8677..9772e9a8 100644
--- a/ledger.el
+++ b/ledger.el
@@ -323,9 +323,13 @@ Return the difference in the format of a time value."
(if (nth 1 item)
(set-text-properties beg (1- (point))
(list 'face 'bold
- 'where (nth 0 item)))
+ 'where
+ (with-current-buffer buf
+ (copy-marker (nth 0 item)))))
(set-text-properties beg (1- (point))
- (list 'where (nth 0 item)))))))
+ (list 'where
+ (with-current-buffer buf
+ (copy-marker (nth 0 item)))))))))
(goto-char (point-min))
(set-buffer-modified-p nil)
(toggle-read-only t)))