summaryrefslogtreecommitdiff
path: root/lisp/ledger-commodities.el
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2015-02-08 16:40:24 +0100
committerthdox <thdox@free.fr>2015-02-10 21:42:50 +0100
commit8162cc783da82b5383e6403c80930034582bb366 (patch)
tree98f5a4e1d305c6b74c8276619a2eef1f1690af5c /lisp/ledger-commodities.el
parentf8dd075e25fae467ad13776eb366a8eb4799f68a (diff)
downloadfork-ledger-8162cc783da82b5383e6403c80930034582bb366.tar.gz
fork-ledger-8162cc783da82b5383e6403c80930034582bb366.tar.bz2
fork-ledger-8162cc783da82b5383e6403c80930034582bb366.zip
[emacs] C-x h M-x untabify RET
C-x h M-x indent-region RET [ci skip]
Diffstat (limited to 'lisp/ledger-commodities.el')
-rw-r--r--lisp/ledger-commodities.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/ledger-commodities.el b/lisp/ledger-commodities.el
index 5ffebf3b..ea6319ba 100644
--- a/lisp/ledger-commodities.el
+++ b/lisp/ledger-commodities.el
@@ -91,8 +91,8 @@ Returns a list with (value commodity)."
(error "Can't add different commodities, %S to %S" c1 c2)))
(defun ledger-strip (str char)
- "Return STR with CHAR removed."
- (replace-regexp-in-string char "" str))
+ "Return STR with CHAR removed."
+ (replace-regexp-in-string char "" str))
(defun ledger-string-to-number (str &optional decimal-comma)
"improve builtin string-to-number by handling internationalization, and return nil if number can't be parsed"
@@ -105,7 +105,7 @@ Returns a list with (value commodity)."
(string-to-number nstr)))
(defun ledger-number-to-string (n &optional decimal-comma)
- "number-to-string that handles comma as decimal."
+ "number-to-string that handles comma as decimal."
(let ((str (number-to-string n)))
(when (or decimal-comma
(assoc "decimal-comma" ledger-environment-alist))
@@ -124,7 +124,7 @@ longer ones are after the value."
(concat commodity " " str))))
(defun ledger-read-commodity-string (prompt)
- "Read an amount from mini-buffer using PROMPT."
+ "Read an amount from mini-buffer using PROMPT."
(let ((str (read-from-minibuffer
(concat prompt " (" ledger-reconcile-default-commodity "): ")))
comm)