summaryrefslogtreecommitdiff
path: root/ledger.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-13 23:41:06 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:59 -0400
commitb831ee1832ccc09212fbfc0fdc085effb10e7793 (patch)
treea07501344783e732e420e0c53b7d5cc0f9a22353 /ledger.el
parenta12f4cdab72f2cb5d82745d29cc74b9bf04e4292 (diff)
downloadfork-ledger-b831ee1832ccc09212fbfc0fdc085effb10e7793.tar.gz
fork-ledger-b831ee1832ccc09212fbfc0fdc085effb10e7793.tar.bz2
fork-ledger-b831ee1832ccc09212fbfc0fdc085effb10e7793.zip
(ledger-reconcile-save): Call `save-buffer', instead of trying to
write the file directly.
Diffstat (limited to 'ledger.el')
-rw-r--r--ledger.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/ledger.el b/ledger.el
index 9772e9a8..b6c491e1 100644
--- a/ledger.el
+++ b/ledger.el
@@ -297,8 +297,7 @@ Return the difference in the format of a time value."
(defun ledger-reconcile-save ()
(interactive)
(with-current-buffer ledger-buf
- (write-region (point-min) (point-max) (buffer-file-name) nil 1)
- (set-buffer-modified-p nil))
+ (save-buffer))
(set-buffer-modified-p nil)
(ledger-display-balance))