[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb-i18n-chn bf0cd7e 14/16: Prepare to update for newe
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ebdb-i18n-chn bf0cd7e 14/16: Prepare to update for newer version of EBDB, but don't release |
Date: |
Sun, 29 Nov 2020 17:03:28 -0500 (EST) |
branch: externals/ebdb-i18n-chn
commit bf0cd7e3779cd0f919bbb3c46afe05fc66a8758c
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Prepare to update for newer version of EBDB, but don't release
* packages/ebdb-i18n-chn/ebdb-i18n-chn.el (ebdb-china-handle-name):
Use the new cache accessors, as well as
`ebdb-add-to-list'/`ebdb-remove-from-list'. Release when EBDB changes
are sufficiently tested.
---
ebdb-i18n-chn.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/ebdb-i18n-chn.el b/ebdb-i18n-chn.el
index b336564..bb60d6f 100644
--- a/ebdb-i18n-chn.el
+++ b/ebdb-i18n-chn.el
@@ -5,7 +5,7 @@
;; Author: Eric Abrahamsen <eric@ericabrahamsen.net>
;; Maintainer: Eric Abrahamsen <eric@ericabrahamsen.net>
;; Version: 1.3
-;; Package-Requires: ((pyim "1.6.0") (ebdb "0.2"))
+;; Package-Requires: ((pyim "1.6.0") (ebdb "0.6.17"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -110,7 +110,6 @@
(cl-defmethod ebdb-string-i18n ((field ebdb-field-name-complex)
(_script (eql han)))
"Properly format names in Chinese characters.
-
This should only run once, at init time, or any time a record's
name is changed. The value ends up in the 'name-string slot of
the record cache."
@@ -143,15 +142,15 @@ searches via pinyin will find the record."
(if (eql add-or-del 'add)
(progn
(setq hashfunc #'ebdb-puthash
- listfunc #'object-add-to-list))
+ listfunc #'ebdb-add-to-list))
(setq hashfunc #'ebdb-remhash
- listfunc #'object-remove-from-list))
+ listfunc #'ebdb-remove-from-list))
(funcall hashfunc fl-py record)
(funcall hashfunc lf-py record)
(funcall hashfunc name-string record)
- (funcall listfunc (ebdb-record-cache record) 'alt-names fl-py)
- (funcall listfunc (ebdb-record-cache record) 'alt-names name-string)
- (funcall listfunc (ebdb-record-cache record) 'alt-names lf-py)))
+ (funcall listfunc (ebdb-record-alt-names record) fl-py)
+ (funcall listfunc (ebdb-record-alt-names record) name-string)
+ (funcall listfunc (ebdb-record-alt-names record) lf-py)))
(cl-defmethod ebdb-china-handle-name ((field ebdb-field-name-simple)
(record ebdb-record)
@@ -165,11 +164,11 @@ searches via pinyin will find the record."
(if (eql add-or-del 'add)
(progn
(setq hashfunc #'ebdb-puthash
- listfunc #'object-add-to-list))
+ listfunc #'ebdb-add-to-list))
(setq hashfunc #'ebdb-remhash
- listfunc #'object-remove-from-list))
+ listfunc #'ebdb-remove-from-list))
(funcall hashfunc name-string record)
- (funcall listfunc (ebdb-record-cache record) 'alt-names name-string)))
+ (funcall listfunc (ebdb-record-alt-names record) name-string)))
(cl-defmethod ebdb-init-field-i18n ((field ebdb-field-name)
record
- [elpa] externals/ebdb-i18n-chn 1ee38b9 06/16: Re-convolute ebdb-string-i18n for addresses, (continued)
- [elpa] externals/ebdb-i18n-chn 1ee38b9 06/16: Re-convolute ebdb-string-i18n for addresses, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn a2309a5 03/16: Stick to variable naming scheme, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 6bb7b78 04/16: Fix up headers for ebdb-i18n-chn, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 4269b92 07/16: Provide the right package name for ebdb-i18n-chn, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn d059714 08/16: Teach EBDB to snarf Chinese names, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 398f647 10/16: Edit address formatting to match changes in EBDB package, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 8aacf3f 12/16: * packages/ebdb-i18n-chn/ebdb-i18n-chn.el: Fix first line, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn d7c6ea1 02/16: Add internationalized ebdb-string method for Chinese addresses, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 7bdd731 16/16: * .gitignore: New file, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 03dd6af 09/16: Guard require statements for packages outside of ELPA, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn bf0cd7e 14/16: Prepare to update for newer version of EBDB, but don't release,
Stefan Monnier <=
- [elpa] externals/ebdb-i18n-chn 567e018 13/16: Fix ebdb-parse methods to return slots, not objects, bump to 1.3, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 70b7cec 15/16: [ebdb-i18n-chn] Flush version 1.3.1, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 377c1ec 05/16: * edbd-i18n-chn.el: Fix typo in metadata, Stefan Monnier, 2020/11/29
- [elpa] externals/ebdb-i18n-chn 685a486 11/16: Safer to check script of address locality, Stefan Monnier, 2020/11/29