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

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

[elpa] externals/pyim c9aaf72 2/6: * pyim.el (pyim-start): Update commen


From: ELPA Syncer
Subject: [elpa] externals/pyim c9aaf72 2/6: * pyim.el (pyim-start): Update comment about kill-emacs-hook.
Date: Sun, 28 Feb 2021 01:57:10 -0500 (EST)

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

    * pyim.el (pyim-start): Update comment about kill-emacs-hook.
---
 pyim.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyim.el b/pyim.el
index 22d31a7..7a4a168 100644
--- a/pyim.el
+++ b/pyim.el
@@ -1292,7 +1292,8 @@ pyim 使用函数 `pyim-start' 启动输入法的时候,会将变量
     ;; 这个命令 *当前* 主要用于五笔输入法。
     (pyim-dcache-call-api 'update-shortcode2word restart))
 
-  (unless (member #'pyim-dcache-save-caches kill-emacs-hook) ;FIXME: Why?
+  ;; Make sure personal or other dcache are saved to file before kill emacs.
+  (unless (member #'pyim-dcache-save-caches kill-emacs-hook)
     (add-to-list 'kill-emacs-hook #'pyim-dcache-save-caches))
   (setq input-method-function 'pyim-input-method)
   (setq deactivate-current-input-method-function 'pyim-inactivate)



reply via email to

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