branch: externals/pyim commit 8e2192aac23c3877120d1adcfef018817dc0c7a5 Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
pyim-dhashcache.el: Add -p in some update variable. * pyim-dhashcache.el (pyim-dhashcache-update-shortcode2word-p) (pyim-dhashcache-update-ishortcode2word-p) (pyim-dhashcache-update-ishortcode2word) (pyim-dhashcache-update-shortcode2word): add -p in update-* variable name. --- pyim-dhashcache.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el index f70589c..f8f9dd0 100644 --- a/pyim-dhashcache.el +++ b/pyim-dhashcache.el @@ -48,8 +48,8 @@ (defvar pyim-dhashcache-shortcode2word nil) (defvar pyim-dhashcache-icode2word nil) (defvar pyim-dhashcache-ishortcode2word nil) -(defvar pyim-dhashcache-update-shortcode2word nil) -(defvar pyim-dhashcache-update-ishortcode2word nil) +(defvar pyim-dhashcache-update-shortcode2word-p nil) +(defvar pyim-dhashcache-update-ishortcode2word-p nil) (defvar pyim-dhashcache-update-icode2word-p nil) (defvar pyim-dhashcache-update-code2word-running-p nil) @@ -89,10 +89,10 @@ 如果 FORCE 为真,强制加载缓存。" (interactive) - (when (or force (not pyim-dhashcache-update-ishortcode2word)) + (when (or force (not pyim-dhashcache-update-ishortcode2word-p)) ;; NOTE: 这个变量按理说应该在回调函数里面设置,但 async 在某些情况下会卡死, ;; 这个变量无法设置为 t, 导致后续产生大量的 emacs 进程,极其影响性能。 - (setq pyim-dhashcache-update-ishortcode2word t) + (setq pyim-dhashcache-update-ishortcode2word-p t) (async-start `(lambda () ,@(pyim-dhashcache-async-inject-variables) @@ -129,10 +129,10 @@ 如果 FORCE 为真,强制运行。" (interactive) - (when (or force (not pyim-dhashcache-update-shortcode2word)) + (when (or force (not pyim-dhashcache-update-shortcode2word-p)) ;; NOTE: 这个变量按理说应该在回调函数里面设置,但 async 在某些情况下会卡死, ;; 这个变量无法设置为 t, 导致后续产生大量的 emacs 进程,极其影响性能。 - (setq pyim-dhashcache-update-shortcode2word t) + (setq pyim-dhashcache-update-shortcode2word-p t) (async-start `(lambda () ,@(pyim-dhashcache-async-inject-variables)