[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 95a4d01768 09/26: Simplify pyim-select-word
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 95a4d01768 09/26: Simplify pyim-select-word |
Date: |
Sun, 26 Jun 2022 10:57:52 -0400 (EDT) |
branch: externals/pyim
commit 95a4d01768ac08df3b266f1cf6bb41c9bb3ce370
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Simplify pyim-select-word
---
pyim.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/pyim.el b/pyim.el
index 493c37e52f..ab4fcb4139 100644
--- a/pyim.el
+++ b/pyim.el
@@ -469,11 +469,10 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
"从选词框中选择当前词条,然后删除该词条对应拼音。"
(interactive)
(pyim-process-create-code-criteria)
- (if (null (pyim-process-get-candidates)) ; 如果没有选项,输入空格
- (progn
- (pyim-process-outcome-handle 'last-char)
- (pyim-process-terminate))
- (pyim-process-select-word (pyim-scheme-current))))
+ (if (pyim-process-get-candidates)
+ (pyim-process-select-word (pyim-scheme-current))
+ ;; 如果没有选项,输入空格
+ (pyim-process-select-last-char)))
(defun pyim-select-word-by-number (&optional num)
"使用数字编号来选择对应的词条。"
- [elpa] externals/pyim b769c97469 13/26: Add pyim-select-word-by-number-1, (continued)
- [elpa] externals/pyim b769c97469 13/26: Add pyim-select-word-by-number-1, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim eb585d56d1 10/26: Simplify pyim-select-word-by-number, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 74fdade342 16/26: Add ignore-errors in pyim-process-with-entered-buffer., ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 7e80507f17 25/26: pyim-process-next-word-position, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 009c56fd15 21/26: Update comment., ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 1ec45c77bb 08/26: Simplify pyim-select-word-simple, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim e7c8d3782a 14/26: Use pyim-process-select-last-char in pyim-page.el, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 862776bf21 24/26: Add pyim-process-plan-to-select-next-word, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 2f9cfb058a 17/26: Add pyim-process-select-nothing, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim d7952b08ef 03/26: Add pyim-page-plan-to-select-word, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 95a4d01768 09/26: Simplify pyim-select-word,
ELPA Syncer <=
- [elpa] externals/pyim 011b87a78f 15/26: Add pyim-process-without-entered-p, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 4b459fb22c 26/26: Refactor, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 8690bd940d 18/26: pyim-process-translating-p -> pyim-process--translating-p, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim c44e5d00db 11/26: pyim-process-create-code-criteria -> pyim-process--create-code-criteria, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim d69083f029 20/26: Move pyim-select-finish-hook to pyim-process.el, ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 9139d75f26 22/26: pyim-process-run use pyim-process-plan-to-select-word., ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 7ea1d2abe2 23/26: Move pyim-process-create-word., ELPA Syncer, 2022/06/26
- [elpa] externals/pyim 0ed0f00435 19/26: Add comment, ELPA Syncer, 2022/06/26