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

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

[elpa] externals/pyim be487264bc 07/35: pyim-dhashcache-upgrade* -> pyim


From: ELPA Syncer
Subject: [elpa] externals/pyim be487264bc 07/35: pyim-dhashcache-upgrade* -> pyim-dhashcache--upgrade*
Date: Fri, 24 Jun 2022 08:58:06 -0400 (EDT)

branch: externals/pyim
commit be487264bc7bf03317ab396272121eeeb9aa968d
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    pyim-dhashcache-upgrade* -> pyim-dhashcache--upgrade*
---
 pyim-dhashcache.el  | 8 ++++----
 tests/pyim-tests.el | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index 4a5b949ed5..23361d308e 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -642,12 +642,12 @@ pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 \\='utf
 
 当前已有的功能:
 1. 基于 :code-prefix-history 信息,升级为新的 code-prefix。"
-  (pyim-dhashcache-upgrade-icode2word
+  (pyim-dhashcache--upgrade-icode2word
    (yes-or-no-p "Delete old key after upgrade? ")))
 
-(defun pyim-dhashcache-upgrade-icode2word (&optional delete-old-key)
+(defun pyim-dhashcache--upgrade-icode2word (&optional delete-old-key)
   "升级 icode2word 缓存。"
-  (dolist (ruler (pyim-dhashcache-upgrade-icode2word-rulers))
+  (dolist (ruler (pyim-dhashcache--upgrade-icode2word-rulers))
     (let ((old-prefix-list (car ruler))
           (new-prefix (cdr ruler)))
       (dolist (old-prefix old-prefix-list)
@@ -667,7 +667,7 @@ pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 \\='utf
              (message "PYIM: No need to upgrade in 
`pyim-dhashcache-icode2word'.")))
          pyim-dhashcache-icode2word)))))
 
-(defun pyim-dhashcache-upgrade-icode2word-rulers ()
+(defun pyim-dhashcache--upgrade-icode2word-rulers ()
   "返回 icode2word 升级规则。
 
 类似: (((\".\") . \"wubi/\") ((\"@\") . \"cangjie/\"))."
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 9975705df0..ba7515be4e 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1431,20 +1431,20 @@ yin-xing 因行
                   '((day 3 7 6 4 5 9 1)))
                  '(69))))
 
-(ert-deftest pyim-tests-pyim-dhashcache-upgrade-icode2word ()
-  (should (equal (pyim-dhashcache-upgrade-icode2word-rulers)
+(ert-deftest pyim-tests-pyim-dhashcache--upgrade-icode2word ()
+  (should (equal (pyim-dhashcache--upgrade-icode2word-rulers)
                  '(((".") . "wubi/") (("@") . "cangjie/"))))
   (let ((pyim-dhashcache-icode2word (make-hash-table :test #'equal)))
     (puthash ".aaaa" '("工") pyim-dhashcache-icode2word)
     (puthash "wubi/aaaa" '("㠭" "工") pyim-dhashcache-icode2word)
-    (pyim-dhashcache-upgrade-icode2word t)
+    (pyim-dhashcache--upgrade-icode2word t)
     (should-not (gethash ".aaaa" pyim-dhashcache-icode2word))
     (should (equal (gethash "wubi/aaaa" pyim-dhashcache-icode2word)
                    '("㠭" "工"))))
   (let ((pyim-dhashcache-icode2word (make-hash-table :test #'equal)))
     (puthash ".aaaa" '("工") pyim-dhashcache-icode2word)
     (puthash "wubi/aaaa" '("㠭" "工") pyim-dhashcache-icode2word)
-    (pyim-dhashcache-upgrade-icode2word)
+    (pyim-dhashcache--upgrade-icode2word)
     (should (equal (gethash ".aaaa" pyim-dhashcache-icode2word)
                    '("工")))
     (should (equal (gethash "wubi/aaaa" pyim-dhashcache-icode2word)



reply via email to

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