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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa-admin 33a5782 042/357: Ensure case-fold-search=t in the exam


From: Stefan Monnier
Subject: [elpa] elpa-admin 33a5782 042/357: Ensure case-fold-search=t in the example email detect function
Date: Thu, 10 Dec 2020 18:06:11 -0500 (EST)

branch: elpa-admin
commit 33a578210d169bc139eeaf8a0dbfe301f0876470
Author: Teemu Likonen <tlikonen@iki.fi>
Commit: Teemu Likonen <tlikonen@iki.fi>

    Ensure case-fold-search=t in the example email detect function
---
 README | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/README b/README
index 83b68bb..b7381d3 100644
--- a/README
+++ b/README
@@ -276,7 +276,8 @@ start composing mail to that address. Here's the language 
configuration:
 Then the needed functions:
 
     (defun email-address-detect (strings)
-      (let (addresses)
+      (let ((case-fold-search t)
+           addresses)
         (dolist (string strings addresses)
           (when (string-match "\\<[a-z.-]+\\>@\\<[a-z.-]+\\>" string)
             (push (match-string-no-properties 0 string) addresses)))))



reply via email to

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