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

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

[elpa] externals/pyim 461b9bcc0a 22/35: pyim-process-imobjs -> pyim-proc


From: ELPA Syncer
Subject: [elpa] externals/pyim 461b9bcc0a 22/35: pyim-process-imobjs -> pyim-process--imobjs
Date: Fri, 24 Jun 2022 08:58:07 -0400 (EDT)

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

    pyim-process-imobjs -> pyim-process--imobjs
---
 pyim-process.el     | 16 ++++++++--------
 tests/pyim-tests.el |  8 ++++----
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/pyim-process.el b/pyim-process.el
index fb794298a9..35e2ca1500 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -136,7 +136,7 @@ entered (nihaom) 的第一个候选词。
 (defvar pyim-process-stop-daemon-hook nil
   "Pyim stop daemon hook.")
 
-(defvar pyim-process-imobjs nil
+(defvar pyim-process--imobjs nil
   "Imobj (Input method object) 组成的 list.
 
 imobj 在 pyim 里面的概念,类似与编译器里面的语法树,
@@ -193,7 +193,7 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
 (pyim-register-local-variables
  '(pyim-process-input-ascii
    pyim-process-translating
-   pyim-process-imobjs
+   pyim-process--imobjs
    pyim-process-candidates
    pyim-process-candidate-position))
 
@@ -326,9 +326,9 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
            entered-to-translate)
       (setq entered-to-translate
             (pyim-entered-get 'point-before))
-      (setq pyim-process-imobjs (pyim-imobjs-create entered-to-translate 
scheme))
+      (setq pyim-process--imobjs (pyim-imobjs-create entered-to-translate 
scheme))
       (setq pyim-process-candidates
-            (or (delete-dups (pyim-candidates-create pyim-process-imobjs 
scheme))
+            (or (delete-dups (pyim-candidates-create pyim-process--imobjs 
scheme))
                 (list entered-to-translate)))
       (unless (eq (pyim-process-auto-select) 'auto-select-success)
         (setq pyim-process-candidate-position 1)
@@ -447,7 +447,7 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
   "使用限时的方式获取候选词。"
   (let* ((scheme (pyim-scheme-current))
          (words (pyim-candidates-create-limit-time
-                 pyim-process-imobjs scheme)))
+                 pyim-process--imobjs scheme)))
     (when words
       (setq pyim-process-candidates
             (pyim-process-merge-candidates words pyim-process-candidates))
@@ -465,12 +465,12 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
   (let ((scheme (pyim-scheme-current))
         (buffer (current-buffer)))
     (pyim-candidates-create-async
-     pyim-process-imobjs scheme
+     pyim-process--imobjs scheme
      (lambda (async-return)
        (with-current-buffer buffer
          (when (and pyim-process-translating
                     (not (input-pending-p))
-                    (equal (car async-return) pyim-process-imobjs))
+                    (equal (car async-return) pyim-process--imobjs))
            (setq pyim-process-candidates
                  (pyim-process-merge-candidates (cdr async-return) 
pyim-process-candidates))
            (pyim-process-ui-refresh)))))))
@@ -494,7 +494,7 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
   (setq pyim-process-candidate-position n))
 
 (defun pyim-process-get-first-imobj ()
-  (car pyim-process-imobjs))
+  (car pyim-process--imobjs))
 
 (defun pyim-process-select-subword-p ()
   pyim-outcome-subword-info)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index a601b8a5b7..4e9c779f24 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1786,7 +1786,7 @@ abc 这是")))
   (let ((pyim-process-candidates '("世界" "时节" "使节" "视界" ))
         (pyim-process-candidate-position 1)
         (pyim-outcome-history '("你好"))
-        (pyim-process-imobjs '((("sh" "i" "sh" "i") ("j" "ie" "j" "ie"))))
+        (pyim-process--imobjs '((("sh" "i" "sh" "i") ("j" "ie" "j" "ie"))))
         (scheme (pyim-scheme-get 'quanpin)))
     (should (equal (pyim-preview-string scheme)
                    "你好世界")))
@@ -1794,7 +1794,7 @@ abc 这是")))
   (let ((pyim-process-candidates '("世界" "时节" "使节" "视界" ))
         (pyim-process-candidate-position 2)
         (pyim-outcome-history nil)
-        (pyim-process-imobjs '((("sh" "i" "sh" "i") ("j" "ie" "j" "ie"))))
+        (pyim-process--imobjs '((("sh" "i" "sh" "i") ("j" "ie" "j" "ie"))))
         (scheme (pyim-scheme-get 'quanpin)))
     (should (equal (pyim-preview-string scheme)
                    "时节")))
@@ -1802,7 +1802,7 @@ abc 这是")))
   (let ((pyim-process-candidates '("这是" "蛰是" "这时" "真实" "这使" "这事" "这" "者" "着" 
"折" "哲" "浙" "遮"))
         (pyim-process-candidate-position 10)
         (pyim-outcome-history nil)
-        (pyim-process-imobjs '((("zh" "e" "zh" "e") ("sh" "i" "sh" "i"))))
+        (pyim-process--imobjs '((("zh" "e" "zh" "e") ("sh" "i" "sh" "i"))))
         (scheme (pyim-scheme-get 'quanpin)))
     (should (equal (pyim-preview-string scheme)
                    "折shi")))
@@ -1810,7 +1810,7 @@ abc 这是")))
   (let ((pyim-process-candidates '("工" "藏匿" "工工" "花花草草" "㠭"))
         (pyim-process-candidate-position 4)
         (pyim-outcome-history nil)
-        (pyim-process-imobjs '(("aaaa")))
+        (pyim-process--imobjs '(("aaaa")))
         (scheme (pyim-scheme-get 'wubi)))
     (should (equal (pyim-preview-string scheme)
                    "花花草草"))))



reply via email to

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