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

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

[elpa] externals/ebdb-i18n-chn 685a486 11/16: Safer to check script of a


From: Stefan Monnier
Subject: [elpa] externals/ebdb-i18n-chn 685a486 11/16: Safer to check script of address locality
Date: Sun, 29 Nov 2020 17:03:28 -0500 (EST)

branch: externals/ebdb-i18n-chn
commit 685a486dc9db2fa40be35e1beae88f143504cfd0
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Safer to check script of address locality
    
    And bump version
    
    * packages/ebdb-i18n-chn/ebdb-i18n-chn.el (ebdb-string-i18n): Check
      the script of the locality, not the street address.
---
 ebdb-i18n-chn.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ebdb-i18n-chn.el b/ebdb-i18n-chn.el
index e9b7d6d..141b550 100644
--- a/ebdb-i18n-chn.el
+++ b/ebdb-i18n-chn.el
@@ -4,7 +4,7 @@
 
 ;; Author: Eric Abrahamsen <eric@ericabrahamsen.net>
 ;; Maintainer: Eric Abrahamsen <eric@ericabrahamsen.net>
-;; Version: 1.1
+;; Version: 1.2
 ;; Package-Requires: ((pyim "1.6.0") (ebdb "0.2"))
 
 ;; This program is free software; you can redistribute it and/or modify
@@ -73,7 +73,7 @@
 (cl-defmethod ebdb-string-i18n ((adr ebdb-field-address)
                                (_cc (eql chn)))
   (with-slots (streets locality region postcode) adr
-    (if (eql (aref char-script-table (aref (car streets) 0)) 'han)
+    (if (eql (aref char-script-table (aref locality 0)) 'han)
        (concat
         ;; There are four municipalities, we don't need to repeat
         ;; city-plus-province for them.



reply via email to

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