[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim be4e345 1/3: * pyim-process.el (pyim-process-termi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim be4e345 1/3: * pyim-process.el (pyim-process-terminate): remove code about pyim-terminate-translation. |
Date: |
Sun, 21 Nov 2021 09:57:23 -0500 (EST) |
branch: externals/pyim
commit be4e345a484bf866e73297345eceeaeeb99ca3bf
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-process.el (pyim-process-terminate): remove code about
pyim-terminate-translation.
---
pyim-process.el | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/pyim-process.el b/pyim-process.el
index e23d99e..82db87e 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -563,7 +563,6 @@ BUG:拼音无法有效地处理多音字。"
(pyim-entered-erase-buffer)
(pyim-process-outcome-handle ""))
-(defalias 'pyim-terminate-translation #'pyim-process-terminate)
(defun pyim-process-terminate ()
"Terminate the translation of the current key."
(setq pyim-process-translating nil)
@@ -576,14 +575,9 @@ BUG:拼音无法有效地处理多音字。"
(setq pyim-cstring-to-code-criteria nil)
(pyim-process-run-async-timer-reset)
(let* ((class (pyim-scheme-get-option (pyim-scheme-name) :class))
- (func (intern (format "pyim-process-terminate:%S" class)))
- ;; `pyim-process-terminate' 以前叫 pyim-terminate-translation, 兼容以前的名称。
- (func-old (intern (format "pyim-terminate-translation:%S" class))))
- (cond ((and class (functionp func))
- (funcall func))
- ((and class (functionp func-old))
- (funcall func))
- (t nil))))
+ (func (intern (format "pyim-process-terminate:%S" class))))
+ (when (and class (functionp func))
+ (funcall func))))
;; * Footer
(provide 'pyim-process)