[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/csv2ledger 6fa69d4391 089/190: Rename regexes to regexps i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/csv2ledger 6fa69d4391 089/190: Rename regexes to regexps in the source. |
Date: |
Sun, 2 Jun 2024 15:59:48 -0400 (EDT) |
branch: elpa/csv2ledger
commit 6fa69d439155dcc7d0cd1eded8c6dd1d99cdf26d
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Rename regexes to regexps in the source.
"Regexps" is the term used in Emacs, so it's preferred here, even though it
seems impossible to pronounce.
---
csv2ledger.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/csv2ledger.el b/csv2ledger.el
index 699ab69bb5..8246e88a91 100644
--- a/csv2ledger.el
+++ b/csv2ledger.el
@@ -182,8 +182,8 @@ book the transaction."
:type 'file
:group 'csv2ledger)
-(defvar c2l-matcher-regexes nil
- "Alist of matcher regexes and their acounts.
+(defvar c2l-matcher-regexps nil
+ "Alist of matcher regexps and their acounts.
Each item should be a cons cell of a regular expression and an
account name. If the regular expression matches any of the
fields in `c2l-target-match-fields', its corresponding account is
@@ -191,7 +191,7 @@ used as the target account.
This variable is normally given a value based on the matchers in
`c2l-account-matchers-file', but you can also set in directly if
-you prefer to use regexes to match accounts.")
+you prefer to use regexps to match accounts.")
(defcustom c2l-target-match-fields '(payee description)
"List of fields used for determining the target account.
@@ -345,7 +345,7 @@ See the documentation for the variable
accounts))
(user-error "[Csv2Ledger] Account matcher file `%s' not found" file))))
-(defun c2l--compile-matcher-regexes (accounts)
+(defun c2l--compile-matcher-regexps (accounts)
"Create efficient regular expressions for the matchers in ACCOUNTS.
ACCOUNTS is a list of (<matcher> . <account>) conses, where
<matcher> should be unique but <account> may occur multiple
@@ -359,14 +359,14 @@ for that account."
(defun c2l--match-account (str)
"Try to match STR to an account."
- (unless c2l-matcher-regexes
- (setq c2l-matcher-regexes
+ (unless c2l-matcher-regexps
+ (setq c2l-matcher-regexps
(-> c2l-account-matchers-file
(c2l--read-account-matchers)
- (c2l--compile-matcher-regexes))))
+ (c2l--compile-matcher-regexps))))
(--some (if (string-match-p (car it) str)
(cdr it))
- c2l-matcher-regexes))
+ c2l-matcher-regexps))
(defun c2l--csv-line-to-ledger (row)
"Convert ROW to a ledger entry.
- [nongnu] elpa/csv2ledger 579acc2d00 032/190: Do not require a match when asking for an account name., (continued)
- [nongnu] elpa/csv2ledger 579acc2d00 032/190: Do not require a match when asking for an account name., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 80e39156a9 101/190: Fix c2l-amount-is-amount., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 463fa78c33 047/190: Rename internal functions with double dash., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger eb05c12358 183/190: Fix typo in the README, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 7cc8fa2ecf 182/190: Update version number., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 4f6bb9e1bd 184/190: Update example function jk/c2l-convert-amount in the README, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger be1366e6d4 031/190: c2l-payee-or-sender: first check if `c2l-account-holder` is even set., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger eaf2ad4fee 028/190: Do not test if file exists if file is nil., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger ac7abd896f 092/190: Guard against empty value of counterpart., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger d5f5712969 083/190: Add comment indicating interactive functions., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 6fa69d4391 089/190: Rename regexes to regexps in the source.,
ELPA Syncer <=
- [nongnu] elpa/csv2ledger e08f335190 091/190: Change fallback value of c2l-title-is-payee-to-sender., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 1048cf77d9 095/190: Update the README., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 8f1c8fa2b6 090/190: Guard for the case where payee or sender does not exist., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 95e107e9bd 123/190: Nicify the README a bit., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger c558f2bf40 176/190: Add alternative account creation function c2l-create-account-ask-matcher, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger bc57cfd9ca 093/190: Remove `counterpart` field., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger a2479be0d5 085/190: Update doc string of c2l--csv-line-to-ledger., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 58d45b6ca2 122/190: Update documentation., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger d1639d9c59 115/190: Add long description to the file header., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 7c84259a9d 042/190: Update error messages with "[Csv2Ledger]" tag., ELPA Syncer, 2024/06/03