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

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

[elpa] externals/pyim 76f67a8d9c 27/58: pyim-kill-emacs-hook-function ->


From: ELPA Syncer
Subject: [elpa] externals/pyim 76f67a8d9c 27/58: pyim-kill-emacs-hook-function -> pyim--kill-emacs-hook-function
Date: Fri, 24 Jun 2022 06:57:54 -0400 (EDT)

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

    pyim-kill-emacs-hook-function -> pyim--kill-emacs-hook-function
---
 pyim.el             | 6 +++---
 tests/pyim-tests.el | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyim.el b/pyim.el
index 8b3d2670ae..852c7b5cb3 100644
--- a/pyim.el
+++ b/pyim.el
@@ -239,7 +239,7 @@ pyim 是使用 `pyim-activate' 来启动输入法,这个命令主要做如下
 2. 创建汉字到拼音和拼音到汉字的 hash table。
 3. 创建词库缓存 dcache.
 4. 运行 hook: `pyim-load-hook'。
-5. 将 `pyim-kill-emacs-hook-function' 命令添加到 `kill-emacs-hook' , emacs 关闭
+5. 将 `pyim--kill-emacs-hook-function' 命令添加到 `kill-emacs-hook' , emacs 关闭
 之前将用户选择过的词生成的缓存和词频缓存保存到文件,供以后使用。
 6. 设定变量:
    1. `input-method-function'
@@ -265,7 +265,7 @@ pyim 使用函数 `pyim-activate' 启动输入法的时候,会将变量
 
   (run-hooks 'pyim-load-hook)
   ;; Make sure personal or other dcache are saved to file before kill emacs.
-  (add-hook 'kill-emacs-hook #'pyim-kill-emacs-hook-function)
+  (add-hook 'kill-emacs-hook #'pyim--kill-emacs-hook-function)
 
   (setq deactivate-current-input-method-function #'pyim-deactivate)
   ;; If we are in minibuffer, turn off the current input method
@@ -276,7 +276,7 @@ pyim 使用函数 `pyim-activate' 启动输入法的时候,会将变量
   (setq-local input-method-function #'pyim-input-method)
   nil)
 
-(defun pyim-kill-emacs-hook-function ()
+(defun pyim--kill-emacs-hook-function ()
   "Pyim function which is used in `kill-emacs-hook'."
   (pyim-process-save-dcaches t)
   t)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 82029e7f6f..7aac821712 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -77,7 +77,7 @@
   ;; 设置 pyim-dcache-directory, 防止用户个人词库不小心被覆盖掉。
   (setq pyim-dcache-directory (pyim-tests-make-temp-file t))
   ;; 做测试的时候不保存词库,防止因为误操作导致个人词库损坏。
-  (defalias 'pyim-kill-emacs-hook-function #'ignore)
+  (defalias 'pyim--kill-emacs-hook-function #'ignore)
 
   (pyim-basedict-enable)
   (pyim-dcache-init-variables))



reply via email to

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