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

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

[elpa] externals/pyim 47ca11bebb 12/22: Add pyim-process-register-self-i


From: ELPA Syncer
Subject: [elpa] externals/pyim 47ca11bebb 12/22: Add pyim-process-register-self-insert-command
Date: Fri, 24 Jun 2022 16:57:52 -0400 (EDT)

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

    Add pyim-process-register-self-insert-command
---
 pyim-process.el | 3 +++
 pyim.el         | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyim-process.el b/pyim-process.el
index 76448b8ea6..52dd36065b 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -210,6 +210,9 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
 (defun pyim-process-force-input-chinese ()
   (setq pyim-process--force-input-chinese t))
 
+(defun pyim-process-register-self-insert-command (command)
+  (cl-pushnew command pyim-process-self-insert-commands))
+
 (defun pyim-process-get-entered (&optional type)
   (pyim-entered-get type))
 
diff --git a/pyim.el b/pyim.el
index aa994ed322..f70382d639 100644
--- a/pyim.el
+++ b/pyim.el
@@ -342,7 +342,7 @@ REFRESH-COMMON-DCACHE 已经废弃,不要再使用了。"
     (pyim-process-outcome-handle 'last-char)
     (pyim-process-terminate))))
 
-(cl-pushnew 'pyim-self-insert-command pyim-process-self-insert-commands)
+(pyim-process-register-self-insert-command 'pyim-self-insert-command)
 
 ;; ** 加词功能
 (defun pyim-create-word-at-point (&optional number silent)



reply via email to

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