summaryrefslogtreecommitdiff
path: root/lisp/ldg-commodities.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-02-23 17:53:55 -0700
committerCraig Earls <enderw88@gmail.com>2013-02-23 17:53:55 -0700
commit4cb2779464073aa8f1ba9d25121e3496fa71168f (patch)
tree6941236532bd7e13dc500cd16082d0603807b6f8 /lisp/ldg-commodities.el
parent47ae01357b8702df78a4dc15280d78302135b13e (diff)
downloadfork-ledger-4cb2779464073aa8f1ba9d25121e3496fa71168f.tar.gz
fork-ledger-4cb2779464073aa8f1ba9d25121e3496fa71168f.tar.bz2
fork-ledger-4cb2779464073aa8f1ba9d25121e3496fa71168f.zip
ledger-mode now automatically loads and parses the init file.
Currently only pays attention to decimal-comma
Diffstat (limited to 'lisp/ldg-commodities.el')
-rw-r--r--lisp/ldg-commodities.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/ldg-commodities.el b/lisp/ldg-commodities.el
index 14cc168f..7f15ab81 100644
--- a/lisp/ldg-commodities.el
+++ b/lisp/ldg-commodities.el
@@ -36,7 +36,6 @@
This only has effect interfacing to calc mode in edit amount"
:type 'boolean
:group 'ledger)
-
(defun ledger-split-commodity-string (str)
"Split a commoditized amount into two parts"
(let (val
@@ -85,7 +84,7 @@ DIRECTION can be :to-user or :from-user. All math calculations
are done with decimal-period, some users may prefer decimal-comma
which must be translated both directions."
(let ((val number-string))
- (if ledger-use-decimal-comma
+ (if (assoc "decimal-comma" ledger-environment-alist)
(cond ((eq direction :from-user)
;; change string to decimal-period
(while (string-match "," val)