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

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

[elpa] externals/pyim 58d283bf34 2/2: * pyim-candidates.el (pyim-candid


From: ELPA Syncer
Subject: [elpa] externals/pyim 58d283bf34 2/2: * pyim-candidates.el (pyim-candidates-create:xingma): 稍微优化一点性能。
Date: Sun, 2 Jan 2022 02:57:46 -0500 (EST)

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

    * pyim-candidates.el (pyim-candidates-create:xingma): 稍微优化一点性能。
---
 pyim-candidates.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/pyim-candidates.el b/pyim-candidates.el
index 34ee4509e9..32e425a94e 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -149,11 +149,14 @@ IMOBJS 获得候选词条。"
                          (pyim-dcache-get last-code '(icode2word))))
                        (common-words (pyim-dcache-get last-code '(code2word)))
                        (chief-word (pyim-candidates-get-chief scheme-name 
personal-words common-words))
-                       (all-words (pyim-dcache-get last-code '(icode2word 
code2word shortcode2word))))
+                       (common-words (pyim-candidates-sort common-words))
+                       (other-words (pyim-dcache-get last-code 
'(shortcode2word))))
                   (mapcar (lambda (word)
                             (concat prefix word))
                           `(,chief-word
-                            ,@(pyim-candidates-sort all-words)))))
+                            ,@personal-words
+                            ,@common-words
+                            ,@other-words))))
           (setq output (remove "" (or output (list prefix))))
           (setq result (append result output))))
       (when (car result)



reply via email to

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