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

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

[elpa] externals/pyim b4c8c650a9 4/7: Move pyim-process-without-entered-


From: ELPA Syncer
Subject: [elpa] externals/pyim b4c8c650a9 4/7: Move pyim-process-without-entered-p
Date: Sun, 26 Jun 2022 20:57:49 -0400 (EDT)

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

    Move pyim-process-without-entered-p
---
 pyim-process.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyim-process.el b/pyim-process.el
index ddbb241c44..1620236871 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -217,9 +217,6 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
 (defun pyim-process-get-entered (&optional type)
   (pyim-entered-get type))
 
-(defun pyim-process-without-entered-p ()
-  (= (length (pyim-process-get-entered 'point-before)) 0))
-
 (defun pyim-process-get-candidates ()
   pyim-process--candidates)
 
@@ -451,7 +448,7 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
 ;; ** 解析输入 -> 获取词条 -> 自动选词
 (defun pyim-process-run ()
   "查询 entered 字符串, 显示备选词等待用户选择。"
-  (if (= (length (pyim-entered-get 'point-before)) 0)
+  (if (pyim-process-without-entered-p)
       (pyim-process-terminate)
     (let* ((scheme (pyim-scheme-current))
            entered-to-translate)
@@ -466,6 +463,9 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
         (pyim-process-ui-refresh)
         (pyim-process--run-delay)))))
 
+(defun pyim-process-without-entered-p ()
+  (= (length (pyim-process-get-entered 'point-before)) 0))
+
 (defun pyim-process-terminate ()
   "Terminate the translation of the current key."
   (pyim-process-terminate-really (pyim-scheme-current)))



reply via email to

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