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

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

[elpa] externals/pyim b465fdaefd 1/2: Simplify pyim-candidates-create-li


From: ELPA Syncer
Subject: [elpa] externals/pyim b465fdaefd 1/2: Simplify pyim-candidates-create-limit-time pyim-candidates-create-async.
Date: Thu, 9 Jun 2022 23:57:49 -0400 (EDT)

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

    Simplify pyim-candidates-create-limit-time pyim-candidates-create-async.
---
 pyim-candidates.el | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/pyim-candidates.el b/pyim-candidates.el
index 38675707b6..5501b4a3e6 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -266,15 +266,13 @@
                                 (pyim-pymap-py2cchar-get pinyin))))))
     (cl-subseq chars 0 num)))
 
-(cl-defgeneric pyim-candidates-create-limit-time (imobjs scheme 
orig-candidates)
+(cl-defgeneric pyim-candidates-create-limit-time (_imobjs _scheme)
   "按照 SCHEME, 使用限时运行的方式从 IMOBJS 获得候选词条。
 
 1. 这个函数是同步运行。
 2. 这个函数运行有时间限制,运行超过某个时间后,无论有没有结果,必须结束。
-3. 这个函数需要探测用户是否输入,如果用户开始输入,这个函数运行必须结束。")
-
-(cl-defmethod pyim-candidates-create-limit-time (_imobjs _scheme)
-  "按照 SCHEME, 使用限时运行的方式从 IMOBJS 获得候选词条。")
+3. 这个函数需要探测用户是否输入,如果用户开始输入,这个函数运行必须结束。"
+  nil)
 
 (cl-defmethod pyim-candidates-create-limit-time (imobjs (scheme 
pyim-scheme-quanpin))
   "按照 SCHEME, 用限时运行的方式从 IMOBJS 获得候选词条,用于全拼输入法。"
@@ -313,13 +311,10 @@
   ;; `pyim-candidates-create-limit-time' 方法来处理 imobjs。
   (cl-call-next-method imobjs (pyim-scheme-get 'quanpin)))
 
-(cl-defgeneric pyim-candidates-create-async (imobjs scheme callback)
+(cl-defgeneric pyim-candidates-create-async (_imobjs _scheme _callback)
   "按照 SCHEME, 使用异步的方式从 IMOBJS 获得候选词条。
 
-获取到的词条后,需要将其做为参数,调用 CALLBACK 函数。")
-
-(cl-defmethod pyim-candidates-create-async (_imobjs _scheme _callback)
-  "按照 SCHEME, 使用异步的方式从 IMOBJS 获得候选词条,默认什么也不做。"
+获取到的词条后,需要将其做为参数,调用 CALLBACK 函数。"
   nil)
 
 ;; * Footer



reply via email to

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