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

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

[elpa] externals/ebdb d589a33 328/350: Internationalized ebdb-parse for


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb d589a33 328/350: Internationalized ebdb-parse for phones wasn't doing enough setup
Date: Mon, 14 Aug 2017 11:47:04 -0400 (EDT)

branch: externals/ebdb
commit d589a33b4a338f384034ae6a66bf736a0fc9abbc
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    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))))
 



reply via email to

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