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

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

[elpa] externals/pyim cfd96c6 20/36: update pyim-candidates.el


From: ELPA Syncer
Subject: [elpa] externals/pyim cfd96c6 20/36: update pyim-candidates.el
Date: Thu, 22 Apr 2021 22:57:18 -0400 (EDT)

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

    update pyim-candidates.el
---
 pyim-candidates.el | 10 ++++++++++
 pyim.el            | 11 -----------
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/pyim-candidates.el b/pyim-candidates.el
index 0841d4a..191c189 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -197,6 +197,16 @@ IMOBJS 获得候选词条。"
   "`pyim-candidates-create' 处理双拼输入法的函数."
   (pyim-candidates-create:quanpin imobjs 'quanpin async))
 
+(defun pyim-candidate-parse (candidate)
+  (let ((output
+         (if (consp candidate)
+             (car candidate)
+           candidate)))
+    (if (stringp output)
+        ;; 注:五笔支持 comments 遗留下来的代码,现在作为兼容而保留,
+        ;; 等用户的 dcache 都升级之后,这个就可以删除了。
+        (car (split-string output ":"))
+      output)))
 
 ;; * Footer
 (provide 'pyim-candidates)
diff --git a/pyim.el b/pyim.el
index 340e895..338d33f 100644
--- a/pyim.el
+++ b/pyim.el
@@ -1440,17 +1440,6 @@ pyim 会使用 Emacs overlay 机制在 *待输入buffer* 光标处高亮显示
                      (overlay-end pyim-preview-overlay))))
 
 ;; ** 选词框相关函数
-(defun pyim-candidate-parse (candidate)
-  (let ((output
-         (if (consp candidate)
-             (car candidate)
-           candidate)))
-    (if (stringp output)
-        ;; 注:五笔支持 comments 遗留下来的代码,现在作为兼容而保留,
-        ;; 等用户的 dcache 都升级之后,这个就可以删除了。
-        (car (split-string output ":"))
-      output)))
-
 (defun pyim-outcome-get (&optional n)
   "获取 outcome"
   (nth (or n 0) pyim-outcome-history))



reply via email to

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