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

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

[elpa] externals/ebdb 491152b 1/4: Use ebdb-default-phone-country as def


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 491152b 1/4: Use ebdb-default-phone-country as default for i18n phone parsing
Date: Sun, 3 Oct 2021 13:20:49 -0400 (EDT)

branch: externals/ebdb
commit 491152b6747e6f04ff7931ffe4d141fa736eea99
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Use ebdb-default-phone-country as default for i18n phone parsing
    
    * ebdb-i18n.el (ebdb-parse): If it's the default for non-i18n phone
    parsing, it should be the default here, too.
---
 ebdb-i18n.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ebdb-i18n.el b/ebdb-i18n.el
index 5aa16d8..783bbca 100644
--- a/ebdb-i18n.el
+++ b/ebdb-i18n.el
@@ -785,7 +785,8 @@ for their symbol representations."
   (let* ((cc-reg "\\`(?\\+(?\\([0-9]\\{1,3\\}\\))?[ \t]+")
         (cc (or (plist-get slots :country-code)
                 (and (string-match cc-reg str)
-                     (string-to-number (match-string 1 str))))))
+                     (string-to-number (match-string 1 str)))
+                ebdb-default-phone-country)))
     (when cc
       (condition-case nil
          (setq slots



reply via email to

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