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

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

[elpa] externals/pyim b4f252016c 16/35: pyim-dhashcache-export* -> pyim-


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

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

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

diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index a314aab276..eff6d93580 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -709,9 +709,9 @@ pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 \\='utf
   (file &context ((pyim-dcache-backend) (eql pyim-dhashcache))
         &optional confirm)
   "导出个人词库到 FILE."
-  (pyim-dhashcache-export pyim-dhashcache-icode2word file confirm))
+  (pyim-dhashcache--export pyim-dhashcache-icode2word file confirm))
 
-(defun pyim-dhashcache-export (dcache file &optional confirm)
+(defun pyim-dhashcache--export (dcache file &optional confirm)
   "将一个 pyim DCACHE 导出为文件 FILE.
 
 如果 CONFIRM 为 non-nil,文件存在时将会提示用户是否覆盖,
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index a3433325f4..be623f688e 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1358,13 +1358,13 @@ zuo-zuo-you-mang 作作有芒")
     (pyim-dhashcache--update-iword2count "你好" (lambda (x) (* x 2)))
     (should (equal (gethash "你好" pyim-dhashcache-iword2count) 20))))
 
-(ert-deftest pyim-tests-pyim-dhashcache-export ()
+(ert-deftest pyim-tests-pyim-dhashcache--export ()
   (let ((file (pyim-tests-make-temp-file))
         (icode2word (make-hash-table :test #'equal)))
     (puthash "yin-xing"
              (list (propertize "银行" :noexport t)
                    "因行") icode2word)
-    (pyim-dhashcache-export icode2word file)
+    (pyim-dhashcache--export icode2word file)
     (with-temp-buffer
       (insert-file-contents file)
       (should (equal(buffer-string) ";;; -*- coding: utf-8-unix -*-



reply via email to

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