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

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

[elpa] externals/pyim 6f74ecd 2/4: * pyim.el (pyim-start): tiny fix.


From: ELPA Syncer
Subject: [elpa] externals/pyim 6f74ecd 2/4: * pyim.el (pyim-start): tiny fix.
Date: Sat, 24 Apr 2021 21:57:12 -0400 (EDT)

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

    * pyim.el (pyim-start): tiny fix.
---
 pyim.el | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/pyim.el b/pyim.el
index d070114..8098374 100644
--- a/pyim.el
+++ b/pyim.el
@@ -197,22 +197,21 @@ pyim 使用函数 `pyim-start' 启动输入法的时候,会将变量
 数`pyim-start-translation'."
   (interactive)
   (pyim-recreate-local-variables)
+
   (when (and restart save-personal-dcache)
     (pyim-dcache-save-caches))
 
-  (pyim-dcache-init-variables)
-
-  (pyim-dcache-update-personal-words restart)
-
   (pyim-pymap-cchar2py-cache-create)
   (pyim-pymap-py2cchar-cache-create)
-  (run-hooks 'pyim-load-hook)
 
+  (pyim-dcache-init-variables)
+  (pyim-dcache-update-personal-words restart)
   (pyim-dcache-update-code2word refresh-common-dcache)
-
   ;; 这个命令 *当前* 主要用于五笔输入法。
   (pyim-dcache-update-shortcode2word restart)
 
+  (run-hooks 'pyim-load-hook)
+
   ;; Make sure personal or other dcache are saved to file before kill emacs.
   (add-hook 'kill-emacs-hook #'pyim-dcache-save-caches)
   (setq input-method-function #'pyim-input-method)



reply via email to

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