[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 38cabb2 5/7: * pyim.el (pyim-start): do not use py
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 38cabb2 5/7: * pyim.el (pyim-start): do not use pyim-dcache-auto-update. |
Date: |
Sat, 24 Apr 2021 09:57:10 -0400 (EDT) |
branch: externals/pyim
commit 38cabb20b6bab35b8b373e6eb45c6593c756f7eb
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim.el (pyim-start): do not use pyim-dcache-auto-update.
---
pyim-dcache.el | 13 +++++++------
pyim.el | 8 ++++----
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/pyim-dcache.el b/pyim-dcache.el
index 7ac2377..aca66c4 100644
--- a/pyim-dcache.el
+++ b/pyim-dcache.el
@@ -179,12 +179,13 @@ VARIABLE 变量,FORCE-RESTORE 设置为 t 时,强制恢复,变量原来的
词库缓冲文件,然后加载词库缓存。
如果 FORCE 为真,强制加载。"
- (let* ((dict-files (mapcar (lambda (x)
- (unless (plist-get x :disable)
- (plist-get x :file)))
- `(,@pyim-dicts ,@pyim-extra-dicts)))
- (dicts-md5 (pyim-dcache-create-dicts-md5 dict-files)))
- (pyim-dcache-call-api 'update-code2word dict-files dicts-md5 force)))
+ (when pyim-dcache-auto-update
+ (let* ((dict-files (mapcar (lambda (x)
+ (unless (plist-get x :disable)
+ (plist-get x :file)))
+ `(,@pyim-dicts ,@pyim-extra-dicts)))
+ (dicts-md5 (pyim-dcache-create-dicts-md5 dict-files)))
+ (pyim-dcache-call-api 'update-code2word dict-files dicts-md5 force))))
(defun pyim-dcache-update-personal-words (&optional force)
"更新个人缓存词库。
diff --git a/pyim.el b/pyim.el
index ced219e..647384b 100644
--- a/pyim.el
+++ b/pyim.el
@@ -208,10 +208,10 @@ pyim 使用函数 `pyim-start' 启动输入法的时候,会将变量
(pyim-pymap-py2cchar-cache-create)
(run-hooks 'pyim-load-hook)
- (when pyim-dcache-auto-update
- (pyim-dcache-update-code2word refresh-common-dcache)
- ;; 这个命令 *当前* 主要用于五笔输入法。
- (pyim-dcache-update-shortcode2word restart))
+ (pyim-dcache-update-code2word refresh-common-dcache)
+
+ ;; 这个命令 *当前* 主要用于五笔输入法。
+ (pyim-dcache-update-shortcode2word restart))
;; Make sure personal or other dcache are saved to file before kill emacs.
(add-hook 'kill-emacs-hook #'pyim-dcache-save-caches)
- [elpa] externals/pyim updated (d07fc68 -> 1d8a7a2), ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 426e06c 1/7: Add pyim-dcache-delete-word., ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 0c01847 3/7: Add pyim-dcache-update-personal-words., ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 38cabb2 5/7: * pyim.el (pyim-start): do not use pyim-dcache-auto-update.,
ELPA Syncer <=
- [elpa] externals/pyim 1d8a7a2 7/7: Add pyim-dcache-update-iword2count and pyim-dcache-insert-icode2word, ELPA Syncer, 2021/04/24
- [elpa] externals/pyim c9258c4 2/7: * pyim.el (pyim-insert-word-into-icode2word): Remove., ELPA Syncer, 2021/04/24
- [elpa] externals/pyim b61482b 6/7: * pyim-dcache.el (pyim-dcache-search-word-code): Add new function., ELPA Syncer, 2021/04/24
- [elpa] externals/pyim b56ee61 4/7: Add pyim-dcache-update-shortcode2word., ELPA Syncer, 2021/04/24