[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 3f18251 02/10: New function pyim-kill-local-variab
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 3f18251 02/10: New function pyim-kill-local-variables. |
Date: |
Sat, 24 Apr 2021 08:57:10 -0400 (EDT) |
branch: externals/pyim
commit 3f182514e51f8a8955dfdf69f0cc0c75c8707a07
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
New function pyim-kill-local-variables.
* pyim.el (pyim-inactivate): Use pyim-kill-local-variables.
* pyim-common.el (pyim-kill-local-variables): New function.
---
pyim-common.el | 4 ++++
pyim.el | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/pyim-common.el b/pyim-common.el
index a21a3f0..45e5623 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -48,6 +48,10 @@
(put var 'permanent-local t))
pyim-local-variable-list)
+(defun pyim-kill-local-variables ()
+ "Kill all local variables in `pyim-local-variable-list'."
+ (mapc #'kill-local-variable pyim-local-variable-list))
+
(defun pyim-recreate-local-variables ()
"Kill then make all variables in `pyim-local-variable-list'."
(mapc #'kill-local-variable pyim-local-variable-list)
diff --git a/pyim.el b/pyim.el
index 54f6fb9..4a3c8cb 100644
--- a/pyim.el
+++ b/pyim.el
@@ -866,7 +866,7 @@ Return the input string.
(defun pyim-inactivate ()
"取消 pyim 的激活状态."
(interactive)
- (mapc #'kill-local-variable pyim-local-variable-list)
+ (pyim-kill-local-variables)
(run-hooks 'pyim-inactive-hook))
(defun pyim-toggle-input-ascii ()
- [elpa] externals/pyim updated (de8641d -> d07fc68), ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 05ee19d 06/10: Revert "Add require to pyim-previews.el", ELPA Syncer, 2021/04/24
- [elpa] externals/pyim d422239 07/10: Revert "Add requires to pyim-outcome.el", ELPA Syncer, 2021/04/24
- [elpa] externals/pyim d07fc68 10/10: Add pyim-entered-refresh-timer-reset and use it., ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 6a89044 08/10: Revert "Add requires to pyim-pages.el", ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 8dfd023 01/10: * pyim-preview.el (pyim-preview-overlay): Fix wrong code., ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 675554f 04/10: Revert "Add requires to pyim-imobjs.el", ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 48b2ea2 03/10: Revert "Add require to pyim-codes.el", ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 3f18251 02/10: New function pyim-kill-local-variables.,
ELPA Syncer <=
- [elpa] externals/pyim 17cea1c 09/10: Revert "Add requires to pyim-entered.el", ELPA Syncer, 2021/04/24
- [elpa] externals/pyim 47a8e15 05/10: Revert "Add require to pyim-cstring.el", ELPA Syncer, 2021/04/24