branch: externals/pyim
commit c7b37cb30c65edf6eb013ef1862dc7af64b4cbd5
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
Add pyim-process-update-last-candidates
---
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 8189d953fc..cafea2b7f7 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -469,6 +469,9 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
(defun pyim-process-get-last-candidates ()
pyim-process-candidates-last)
+(defun pyim-process-update-last-candidates ()
+ (setq pyim-process-candidates-last pyim-process-candidates))
+
(defun pyim-process-get-candidate-position ()
pyim-process-candidate-position)
diff --git a/pyim.el b/pyim.el
index 1c881e4fb4..f6c69017d1 100644
--- a/pyim.el
+++ b/pyim.el
@@ -315,7 +315,7 @@ REFRESH-COMMON-DCACHE 已经废弃,不要再使用了。"
(defun pyim-self-insert-command ()
"Pyim 默认的 self-insert-command."
(interactive "*")
- (setq pyim-process-candidates-last pyim-process-candidates)
+ (pyim-process-update-last-candidates)
(cond
((pyim-process-input-chinese-p)
(pyim-process-with-entered-buffer