branch: externals/ebdb
commit d589a33b4a338f384034ae6a66bf736a0fc9abbc
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Internationalized ebdb-parse for phones wasn't doing enough setup
* ebdb-i18n.el (ebdb-parse): This method needs to remove the country
code from the string, and set it in the slots. I hadn't run into
this before because the read method works correctly, and there's
nowhere in the code where the internationalized parser is given a
raw phone string. Adding phones to the snarfing routines revealed
the bug.
---
ebdb-i18n.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ebdb-i18n.el b/ebdb-i18n.el
index 5b92d93..85a8324 100644
--- a/ebdb-i18n.el
+++ b/ebdb-i18n.el
@@ -173,7 +173,10 @@ for their symbol representations.")
(string-to-number (match-string 1 str))))))
(or (and cc
(condition-case nil
- (ebdb-parse-i18n class str cc slots)
+ (ebdb-parse-i18n
+ class
+ (replace-match "" nil nil str 0)
+ cc (plist-put slots :country-code cc))
(cl-no-method nil)))
(cl-call-next-method))))