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

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

[elpa] externals/pyim 6a3f0e0 3/6: * pyim.el (pyim-exit-from-minibuffer)


From: ELPA Syncer
Subject: [elpa] externals/pyim 6a3f0e0 3/6: * pyim.el (pyim-exit-from-minibuffer): Call quail-exit-from-minibuffer.
Date: Sun, 28 Feb 2021 01:57:10 -0500 (EST)

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

    * pyim.el (pyim-exit-from-minibuffer): Call quail-exit-from-minibuffer.
---
 pyim.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pyim.el b/pyim.el
index 7a4a168..0019d8d 100644
--- a/pyim.el
+++ b/pyim.el
@@ -1312,10 +1312,7 @@ pyim 使用函数 `pyim-start' 启动输入法的时候,会将变量
 
 (defun pyim-exit-from-minibuffer ()
   "Pyim 从 minibuffer 退出."
-  (deactivate-input-method)
-  (when (<= (minibuffer-depth) 1)
-    ;; FIXME: Why do we remove a hook function we didn't add ourselves?
-    (remove-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer)))
+  (quail-exit-from-minibuffer))
 
 (defun pyim-restart ()
   "重启 pyim,不建议用于编程环境.



reply via email to

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