[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 50e92fa: Prepare to update for newer version of EBDB, but
From: |
Eric Abrahamsen |
Subject: |
[elpa] master 50e92fa: Prepare to update for newer version of EBDB, but don't release |
Date: |
Sun, 19 Apr 2020 00:53:34 -0400 (EDT) |
branch: master
commit 50e92fa4f847ce025a2d534e6426c6ce4263e599
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
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.
---
packages/ebdb-i18n-chn/ebdb-i18n-chn.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/packages/ebdb-i18n-chn/ebdb-i18n-chn.el
b/packages/ebdb-i18n-chn/ebdb-i18n-chn.el
index b336564..bb60d6f 100644
--- a/packages/ebdb-i18n-chn/ebdb-i18n-chn.el
+++ b/packages/ebdb-i18n-chn/ebdb-i18n-chn.el
@@ -5,7 +5,7 @@
;; Author: Eric Abrahamsen <address@hidden>
;; Maintainer: Eric Abrahamsen <address@hidden>
;; 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 50e92fa: Prepare to update for newer version of EBDB, but don't release,
Eric Abrahamsen <=