branch: elpa/csv2ledger commit 2bcc1a8e76ee54dfd71fb54a469b9a9f1fce1754 Author: Joost Kremers <joostkrem...@fastmail.com> Commit: Joost Kremers <joostkrem...@fastmail.com>
Improve doc string of c2l-create-account --- csv2ledger.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/csv2ledger.el b/csv2ledger.el index 4914ba9426..3cdda3224f 100644 --- a/csv2ledger.el +++ b/csv2ledger.el @@ -328,7 +328,10 @@ Return the modified transaction." transaction) (defun c2l-create-account (transaction) - "Create the account for TRANSACTION." + "Get the balancing account for TRANSACTION. +First check if the account matchers provide a balancing account. +If not, use `c2l-fallback-account' if provided. If neither +method yields an account, ask the user." (let ((account (or (seq-some #'c2l--match-account (mapcar #'cdr (seq-filter (lambda (e) (memq (car e) c2l-target-match-fields))