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

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

[elpa] externals/pyim 80fdf32548 14/35: pyim-dhashcache-generate* -> pyi


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

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

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

diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index 2da39c0858..50ede0c3eb 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -404,8 +404,8 @@
        `(lambda ()
           ,@(pyim-dhashcache--async-inject-variables)
           (require 'pyim-dhashcache)
-          (let ((dcache (pyim-dhashcache-generate-dcache-file ',dict-files 
,code2word-file)))
-            (pyim-dhashcache-generate-word2code-dcache-file dcache 
,word2code-file))
+          (let ((dcache (pyim-dhashcache--generate-dcache-file ',dict-files 
,code2word-file)))
+            (pyim-dhashcache--generate-word2code-dcache-file dcache 
,word2code-file))
           (pyim-dcache-save-value-to-file ',dicts-md5 ,code2word-md5-file))
        (lambda (_)
          (pyim-dcache-reload-variable pyim-dhashcache-code2word)
@@ -413,7 +413,7 @@
          (pyim-dhashcache--update-shortcode2word force)
          (setq pyim-dhashcache--update-code2word-running-p nil))))))
 
-(defun pyim-dhashcache-generate-word2code-dcache-file (dcache file)
+(defun pyim-dhashcache--generate-word2code-dcache-file (dcache file)
   "从 DCACHE 生成一个 word -> code 的反向查询表.
 DCACHE 是一个 code -> words 的 hashtable.
 并将生成的表保存到 FILE 中."
@@ -449,7 +449,7 @@ DCACHE 是一个 code -> words 的 hashtable.
     (concat (file-name-as-directory pyim-dcache-directory)
             (symbol-name variable))))
 
-(defun pyim-dhashcache-generate-dcache-file (dict-files dcache-file)
+(defun pyim-dhashcache--generate-dcache-file (dict-files dcache-file)
   "读取词库文件列表:DICT-FILES, 生成一个词库缓冲文件 DCACHE-FILE.
 
 pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 \\='utf-8-unix,
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index dd16c26fdf..a3433325f4 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1255,7 +1255,7 @@ wo-hao 我好
     (should (equal (pyim-dhashcache--get-ishortcodes-path 'hello) 
(expand-file-name "hello" dir)))
     (should (equal (pyim-dhashcache--get-ishortcodes-path "hello") nil))))
 
-(ert-deftest pyim-tests-pyim-dhashcache-generate-file ()
+(ert-deftest pyim-tests-pyim-dhashcache--generate-file ()
   (let ((dist-file (pyim-tests-make-temp-file))
         (dcache-file (pyim-tests-make-temp-file))
         (word2code-dcache-file (pyim-tests-make-temp-file))
@@ -1269,11 +1269,11 @@ wo 我
 zuo-zuo-ye 做作业
 zuo-zuo-you-mang 作作有芒")
       (write-region (point-min) (point-max) dist-file))
-    (pyim-dhashcache-generate-dcache-file (list dist-file) dcache-file)
+    (pyim-dhashcache--generate-dcache-file (list dist-file) dcache-file)
     (with-temp-buffer
       (insert-file-contents dcache-file)
       (setq output1 (read (current-buffer)))
-      (pyim-dhashcache-generate-word2code-dcache-file output1 
word2code-dcache-file))
+      (pyim-dhashcache--generate-word2code-dcache-file output1 
word2code-dcache-file))
     (with-temp-buffer
       (insert-file-contents word2code-dcache-file)
       (setq output2 (read (current-buffer))))



reply via email to

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