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

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

[elpa] externals/pyim 53a4649ed0 5/5: * pyim-candidates.el (pyim-candida


From: ELPA Syncer
Subject: [elpa] externals/pyim 53a4649ed0 5/5: * pyim-candidates.el (pyim-candidates-create:xingma): Improve.
Date: Fri, 31 Dec 2021 01:57:46 -0500 (EST)

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

    * pyim-candidates.el (pyim-candidates-create:xingma): Improve.
---
 pyim-candidates.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pyim-candidates.el b/pyim-candidates.el
index d89ec2dab6..1a6f64286b 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -94,11 +94,12 @@ IMOBJS 获得候选词条。"
                 ;; NOTE: 下面这种策略是否合理?
                 ;; 1. 第一个词选择公共词库中的第一个词。
                 ;; 2. 剩下的分成字和词,字优先排,字和词各按 count 大小排序。
-                (let* ((first-word (car (pyim-dcache-get last-code 
'(code2word))))
-                       (all-words (pyim-dcache-get last-code '(icode2word 
code2word shortcode2word)))
+                (let* ((words (pyim-dcache-get last-code '(code2word)))
+                       (first-word (car words))
                        (chars (cl-remove-if (lambda (word)
                                               (> (length word) 1))
-                                            all-words)))
+                                            words))
+                       (all-words (pyim-dcache-get last-code '(icode2word 
code2word shortcode2word))))
                   (mapcar (lambda (word)
                             (concat prefix word))
                           `(,first-word



reply via email to

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