branch: externals/ebdb commit 491152b6747e6f04ff7931ffe4d141fa736eea99 Author: Eric Abrahamsen <e...@ericabrahamsen.net> Commit: Eric Abrahamsen <e...@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