[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim d15f137 2/3: Assistant-scheme need manual toggle b
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim d15f137 2/3: Assistant-scheme need manual toggle by type TAB now. |
Date: |
Mon, 26 Apr 2021 20:57:10 -0400 (EDT) |
branch: externals/pyim
commit d15f13786ebf7b4b0ffeecb4830b2d0e2325f904
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Assistant-scheme need manual toggle by type TAB now.
* pyim-scheme.el (pyim-common): require.
* pyim.el (pyim-terminate-translation): Do not set
pyim-assistant-scheme-enable to nil.
* pyim-scheme.el (pyim-assistant-scheme-enable): register with
pyim-register-local-variables.
---
pyim-scheme.el | 3 +++
pyim.el | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/pyim-scheme.el b/pyim-scheme.el
index 9dc01d6..820d6d4 100644
--- a/pyim-scheme.el
+++ b/pyim-scheme.el
@@ -28,6 +28,7 @@
;;; Code:
;; * 代码 :code:
(require 'cl-lib)
+(require 'pyim-common)
(defgroup pyim-scheme nil
"Scheme tools for pyim."
@@ -47,6 +48,8 @@
(defvar pyim-assistant-scheme-enable nil
"设置临时 scheme, 用于五笔等形码输入法临时拼音输入。")
+(pyim-register-local-variables '(pyim-assistant-scheme-enable))
+
(defvar pyim-schemes nil
"Pyim 支持的所有拼音方案.")
diff --git a/pyim.el b/pyim.el
index d22e3d6..22c5415 100644
--- a/pyim.el
+++ b/pyim.el
@@ -421,7 +421,6 @@ REFRESH-COMMON-DCACHE 已经废弃,不要再使用了。"
(pyim-preview-delete-string)
(setq pyim-candidates nil)
(setq pyim-candidates-last nil)
- (setq pyim-assistant-scheme-enable nil)
(setq pyim-force-input-chinese nil)
(pyim-page-hide)
(pyim-entered-erase-buffer)