emacs-elpa-diffs
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]