[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))))
- [elpa] externals/pyim updated (c573694ae4 -> f073ba0fb8), ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 2e687c443b 12/35: pyim-dhashcache-async* -> pyim-dhashcache--async*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim be487264bc 07/35: pyim-dhashcache-upgrade* -> pyim-dhashcache--upgrade*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 80fdf32548 14/35: pyim-dhashcache-generate* -> pyim-dhashcache--generate*,
ELPA Syncer <=
- [elpa] externals/pyim 2473b5be9b 24/35: pyim-process-candidate-position -> pyim-process--candidate-position, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 43b09cfcac 26/35: pyim-process-input-chinese-predicate-1 -> pyim-process--input-chinese-predicate-1, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 2c04245442 05/35: pyim-preview-start-point -> pyim-preview--start-point, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim fea5fe56e3 06/35: pyim-dhashcache-update* -> pyim-dhashcache--update*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 4a3a27fe54 09/35: pyim-dhashcache-put -> pyim-dhashcache--put, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 8f195d4efe 19/35: pyim-dregcache- -> pyim-dregcache--, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 93e54a0783 23/35: pyim-process-candidates-last -> pyim-process--candidates-last, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim e264cbe5f5 02/35: pyim-preview-delete-overlay -> pyim-preview--delete-overlay, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 3454118ea9 08/35: pyim-dhashcache-init* -> pyim-dhashcache--init*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 91ffc476b8 11/35: pyim-dhashcache-get* -> pyim-dhashcache--get*, ELPA Syncer, 2022/06/24