[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/csv2ledger cd955dd41b 172/190: Move c2l-compose-entry to t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/csv2ledger cd955dd41b 172/190: Move c2l-compose-entry to the correct section. |
Date: |
Sun, 2 Jun 2024 15:59:55 -0400 (EDT) |
branch: elpa/csv2ledger
commit cd955dd41bd0ac1233017fc8643b666ef76a2196
Author: Joost Kremers <joostkremers@fastmail.com>
Commit: Joost Kremers <joostkremers@fastmail.com>
Move c2l-compose-entry to the correct section.
It should appear in the section for functions that can be used as values for
user options, not in the section for helper functions.
---
csv2ledger.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/csv2ledger.el b/csv2ledger.el
index 9c658d91b9..9711cdfaed 100644
--- a/csv2ledger.el
+++ b/csv2ledger.el
@@ -342,13 +342,6 @@ Return the modified transaction."
(push (cons 'account account) transaction)
transaction))
-;;; Helper functions
-
-(defun c2l--amount-p (str)
- "Return non-nil if STR is likely to be an amount."
- (if (string-match-p "[0-9]+[0-9.,]*\\(?:[.,][0-9]\\{2\\}\\)?" str)
- str))
-
(defun c2l-compose-entry (transaction)
"Create a ledger entry.
TRANSACTION is an alist containing (key . value) pairs that will
@@ -368,6 +361,13 @@ cleared, even if there is no value for `posted' in
TRANSACTION."
(make-string (- c2l-alignment-column 4 (length c2l-base-account) 2
(length .amount)) ?\s)
.amount "\n")))
+;;; Helper functions
+
+(defun c2l--amount-p (str)
+ "Return non-nil if STR is likely to be an amount."
+ (if (string-match-p "[0-9]+[0-9.,]*\\(?:[.,][0-9]\\{2\\}\\)?" str)
+ str))
+
(defun c2l--read-accounts (file)
"Read list of accounts from FILE."
(when (stringp file)
- [nongnu] branch elpa/csv2ledger created (now 91a9c504a7), ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 91a9c504a7 190/190: Update version number, ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 356e833e9d 169/190: Make c2l--has-header a bit more functional., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger ffe648ecf0 170/190: Remove dependency on parse-csv, ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger f805e4b0e0 173/190: Update version number., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 5956b5e351 174/190: Update error message in c2l--get-current-row, ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger b403b4f165 168/190: Fix doc string of c2l--has-header., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 57989d70f6 171/190: Keep order of account matchers., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 464fa0b188 167/190: Update version number., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger cd955dd41b 172/190: Move c2l-compose-entry to the correct section.,
ELPA Syncer <=
- [nongnu] elpa/csv2ledger 7d75cd4c41 166/190: Update README., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 22c9d76302 136/190: Fix doc string of c2l-transaction-modify-functions., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger ec76d40813 137/190: Update README., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 8d16b790a8 127/190: Fix typo in the README., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 39cefb514c 128/190: Add installation section to README., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 7bf8eea86a 130/190: Update doc string of c2l-convert-buffer., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger f37a5677a4 135/190: Update copyright year., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 5f270d2ff0 132/190: Update the README., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger 9e495b83ec 124/190: Further fixes to the README., ELPA Syncer, 2024/06/02
- [nongnu] elpa/csv2ledger f846dca63c 133/190: Small fix for README.md, ELPA Syncer, 2024/06/02