[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 88d1450 1/4: pyim-dcache-update-variable -> pyim-d
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 88d1450 1/4: pyim-dcache-update-variable -> pyim-dcache-reload-variable |
Date: |
Tue, 14 Dec 2021 19:57:35 -0500 (EST) |
branch: externals/pyim
commit 88d14507ad34b4ea4186453ef9e94f0b7ba4b536
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
pyim-dcache-update-variable -> pyim-dcache-reload-variable
* pyim-dhashcache.el (pyim-dhashcache-update-ishortcode2word)
(pyim-dhashcache-update-shortcode2word)
(pyim-dhashcache-update-code2word)
(pyim-dhashcache-update-icode2word):
* pyim-dcache.el (pyim-dcache-reload-variable):
---
pyim-dcache.el | 4 ++--
pyim-dhashcache.el | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/pyim-dcache.el b/pyim-dcache.el
index 0a43521..577adbc 100644
--- a/pyim-dcache.el
+++ b/pyim-dcache.el
@@ -95,8 +95,8 @@ dcache 文件的方法让 pyim 正常工作。")
fallback-value
(make-hash-table :test #'equal)))))
-(defun pyim-dcache-update-variable (variable)
- "更新 VARIABLE"
+(defun pyim-dcache-reload-variable (variable)
+ "从 `pyim-dcache-directory' 重新读取并设置 VARIABLE 的值."
(set variable (or (pyim-dcache-get-value variable)
(make-hash-table :test #'equal))))
diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index 73494f5..c6fa6ea 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -125,7 +125,7 @@
pyim-dhashcache-icode2word
pyim-dhashcache-iword2count)))
(lambda (_)
- (pyim-dcache-update-variable 'pyim-dhashcache-ishortcode2word)))))
+ (pyim-dcache-reload-variable 'pyim-dhashcache-ishortcode2word)))))
(defun pyim-dhashcache-update-ishortcode2word-1 (icode2word iword2count)
"`pyim-dhashcache-update-ishortcode2word' 内部函数."
@@ -167,7 +167,7 @@
pyim-dhashcache-code2word
pyim-dhashcache-iword2count)))
(lambda (_)
- (pyim-dcache-update-variable 'pyim-dhashcache-shortcode2word)))))
+ (pyim-dcache-reload-variable 'pyim-dhashcache-shortcode2word)))))
(defun pyim-dhashcache-update-shortcode2word-1 (code2word iword2count)
"`pyim-dhashcache-update-shortcode2word' 的内部函数"
@@ -274,8 +274,8 @@ DCACHE 是一个 code -> words 的 hashtable.
(pyim-dhashcache-generate-word2code-dcache-file dcache
,word2code-file))
(pyim-dcache-save-value-to-file ',dicts-md5 ,code2word-md5-file))
(lambda (_)
- (pyim-dcache-update-variable 'pyim-dhashcache-code2word)
- (pyim-dcache-update-variable 'pyim-dhashcache-word2code)
+ (pyim-dcache-reload-variable 'pyim-dhashcache-code2word)
+ (pyim-dcache-reload-variable 'pyim-dhashcache-word2code)
(pyim-dhashcache-update-shortcode2word force)
(setq pyim-dhashcache-update-code2word-running-p nil))))))
@@ -351,7 +351,7 @@ code 对应的中文词条了。
pyim-dhashcache-icode2word)
nil)
(lambda (_)
- (pyim-dcache-update-variable 'pyim-dhashcache-icode2word)
+ (pyim-dcache-reload-variable 'pyim-dhashcache-icode2word)
(pyim-dhashcache-update-ishortcode2word force)))))
(defun pyim-dhashcache-upgrade-icode2word ()