[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 845e9f6e4f 23/41: * pyim-candidates.el (pyim-candi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 845e9f6e4f 23/41: * pyim-candidates.el (pyim-candidates-create-async): Simplify shuangpin. |
Date: |
Sat, 4 Jun 2022 09:57:47 -0400 (EDT) |
branch: externals/pyim
commit 845e9f6e4fc78aae099534f08d813e6c9c891b4c
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-candidates.el (pyim-candidates-create-async): Simplify shuangpin.
---
pyim-candidates.el | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/pyim-candidates.el b/pyim-candidates.el
index 8a0536cbed..38c8e065e0 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -322,19 +322,8 @@
(cl-defmethod pyim-candidates-create-async (imobjs (scheme
pyim-scheme-shuangpin))
"按照 SCHEME, 用异步的方式从 IMOBJS 获得候选词条,用于双拼输入法。"
- ;; 构建一个搜索中文的正则表达式, 然后使用这个正则表达式在当前 buffer 中搜
- ;; 索词条。
- (let ((str (string-join (pyim-codes-create (car imobjs) scheme))))
- (if (< (length str) 1)
- pyim-candidates
- ;; NOTE: 让第一个词保持不变是不是合理,有待进一步的观察。
- `(,(car pyim-candidates)
- ,@(pyim-candidates-search-buffer
- ;; 按照 pyim 的内部设计,这里得到的 str 其实是全拼,所以要按照全
- ;; 拼的规则来生成 cregexp.
- (let ((pyim-default-scheme 'quanpin))
- (pyim-cregexp-build str 3 t)))
- ,@(cdr pyim-candidates)))))
+ (let ((pyim-default-scheme 'quanpin))
+ (cl-call-next-method)))
;; * Footer
(provide 'pyim-candidates)
- [elpa] externals/pyim updated (872c7139fe -> 2f1aaaa9a7), ELPA Syncer, 2022/06/04
- [elpa] externals/pyim dbd9815164 03/41: * pyim-candidates.el (pyim-candidates-create): Remove comment., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 6d68a1f451 04/41: * tests/pyim-tests.el (pyim-tests-pyim-candidates-create-xingma): New test., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 42bc6092ed 10/41: Add pyim-candidates-create-get-dcache-words, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 5c7ca2cef7 07/41: Add pyim-candidates-create-async for rime., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim a4143ce691 12/41: pyim-candidates-create-like-jianpin -> pyim-candidates-jianpin-words, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 5f716730ea 17/41: Update pyim-test.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 665867fc0a 31/41: Set pyim-process-autoselector default value is nil., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 424e488118 36/41: Add preview test, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 845e9f6e4f 23/41: * pyim-candidates.el (pyim-candidates-create-async): Simplify shuangpin.,
ELPA Syncer <=
- [elpa] externals/pyim 5611319de0 35/41: Add page test, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim aa07a23fda 39/41: * pyim-probe.el (pyim-probe-org-latex-mode): Update., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 573fefe532 38/41: Use (eql symbol) instead of (eql 'symbol)., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 2f1aaaa9a7 41/41: Merge pull request #442 from tumashu/struct, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim c5a77c3f73 05/41: Add pyim-candidate-create-async, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 0d357b5fd9 08/41: pyim-candidates-create-like-znabc, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 6ce5f49b8f 01/41: Big refactor: use cl-defstruct and cl-defgeneric., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f5300086fd 02/41: * tests/pyim-tests.el (pyim-tests-pyim-candidates-get-chief): New test., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f536e5ede3 06/41: Fix warns., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 33a0f5a9b7 09/41: Add pyim-candidates-create-like-jianpin, ELPA Syncer, 2022/06/04