summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ldg-commodities.el6
-rw-r--r--lisp/ldg-complete.el2
-rw-r--r--lisp/ldg-mode.el2
-rw-r--r--lisp/ldg-reconcile.el4
4 files changed, 4 insertions, 10 deletions
diff --git a/lisp/ldg-commodities.el b/lisp/ldg-commodities.el
index c007816d..ab5c8898 100644
--- a/lisp/ldg-commodities.el
+++ b/lisp/ldg-commodities.el
@@ -19,12 +19,6 @@
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
;; MA 02111-1307, USA.
-;; A sample entry sorting function, which works if entry dates are of
-;; the form YYYY/mm/dd.
-
-
-
-
;;; Commentary:
;; Helper functions to deal with commoditized numbers. A commoditized
;; number will be a cons of value and string where the string contains
diff --git a/lisp/ldg-complete.el b/lisp/ldg-complete.el
index 82046e07..1836eb2c 100644
--- a/lisp/ldg-complete.el
+++ b/lisp/ldg-complete.el
@@ -132,7 +132,7 @@ Return tree structure"
(line-end-position))
(condition-case err
(ledger-add-transaction text t)
- ((error)
+ ((error "ledger-complete-at-point")
(insert text))))
(forward-line)
(goto-char (line-end-position))
diff --git a/lisp/ldg-mode.el b/lisp/ldg-mode.el
index 6cab7c9b..6499d803 100644
--- a/lisp/ldg-mode.el
+++ b/lisp/ldg-mode.el
@@ -229,7 +229,7 @@ correct chronological place in the buffer."
(mapcar 'eval args)))
(goto-char (point-min))
(if (looking-at "Error: ")
- (error (buffer-string))
+ (error (concat "Error in ledger-add-transaction: " (buffer-string))
(buffer-string)))
"\n"))
(progn
diff --git a/lisp/ldg-reconcile.el b/lisp/ldg-reconcile.el
index ea8ff06e..bb4bec5e 100644
--- a/lisp/ldg-reconcile.el
+++ b/lisp/ldg-reconcile.el
@@ -107,7 +107,7 @@ numbers"
"Return a buffer from WHERE the transaction is."
(if (bufferp (car where))
(car where)
- (error "Buffer not set")))
+ (error "ledger-reconcile-get-buffer: Buffer not set")))
(defun ledger-reconcile-toggle ()
"Toggle the current transaction, and mark the recon window."
@@ -273,7 +273,7 @@ POSTING is used in `ledger-clear-whole-transactions' is nil."
(goto-char (point-min))
(unless (eobp)
(unless (looking-at "(")
- (error (buffer-string)))
+ (error (concat "ledger-do-reconcile: " (buffer-string)))
(read (current-buffer)))))) ;current-buffer is the *temp* created above
(if (> (length xacts) 0)
(progn