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

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

[elpa] externals/pyim 3caad23478: Append when create word in xingma.


From: ELPA Syncer
Subject: [elpa] externals/pyim 3caad23478: Append when create word in xingma.
Date: Fri, 31 Dec 2021 06:57:40 -0500 (EST)

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

    Append when create word in xingma.
    
            * pyim.el (pyim-select-word:xingma): Append when create word.
    
            * pyim-process.el (pyim-process-run-1): Append when create word.
---
 pyim-process.el | 4 ++--
 pyim.el         | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/pyim-process.el b/pyim-process.el
index a647024fd0..bc5c0d5284 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -282,7 +282,7 @@
                     (list str)
                   pyim-candidates-last)))
           (pyim-process-outcome-handle 'candidate)
-          (pyim-process-create-word (pyim-process-get-outcome)))
+          (pyim-process-create-word (pyim-process-get-outcome) t))
         ;; autoselector 机制已经触发的时候,如果发现 entered buffer 中
         ;; point 后面还有未处理的输入,就将其转到下一轮处理,这种情况
         ;; 很少出现,一般是型码输入法,entered 编辑的时候有可能触发。
@@ -305,7 +305,7 @@
                     (list str)
                   pyim-candidates)))
           (pyim-process-outcome-handle 'candidate)
-          (pyim-process-create-word (pyim-process-get-outcome)))
+          (pyim-process-create-word (pyim-process-get-outcome) t))
         (pyim-add-unread-command-events
          (pyim-entered-get 'point-after))
         (pyim-process-terminate))
diff --git a/pyim.el b/pyim.el
index a498846075..283789befd 100644
--- a/pyim.el
+++ b/pyim.el
@@ -591,8 +591,9 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
           ;; 字符串里面剪掉。
           (delete-region (point-min) (point)))
         (pyim-process-run))
-    (unless (pyim-process-select-subword-p) ;NOTE: 以词定字的时候,到底应不应该保存词条呢,需要进一步研究。
-      (pyim-process-create-word (pyim-process-get-outcome)))
+    ;; NOTE: 以词定字的时候,到底应不应该保存词条呢,需要进一步研究。
+    (unless (pyim-process-select-subword-p)
+      (pyim-process-create-word (pyim-process-get-outcome) t))
     (pyim-process-terminate)
     ;; pyim 使用这个 hook 来处理联想词。
     (run-hooks 'pyim-select-finish-hook)))



reply via email to

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