[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 4d159dc 1/2: * pyim-common.el (pyim-add-unread-com
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 4d159dc 1/2: * pyim-common.el (pyim-add-unread-command-events): Ugly fix "<no-record> is undefined #402" |
Date: |
Sun, 4 Jul 2021 01:57:14 -0400 (EDT) |
branch: externals/pyim
commit 4d159dcc53ef41ebb26aa2e64f27f7103af09d5f
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-common.el (pyim-add-unread-command-events): Ugly fix "<no-record> is
undefined #402"
---
pyim-common.el | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/pyim-common.el b/pyim-common.el
index 8003582..5b04450 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -185,8 +185,21 @@ This function is a fork of
`quail-add-unread-command-events'."
(setq unread-command-events nil))
(setq unread-command-events
(if (characterp key)
- (cons (cons 'no-record key) unread-command-events)
- (append (mapcan (lambda (e) (list (cons 'no-record e)))
+ (cons
+ (if window-system
+ (cons 'no-record key)
+ ;; FIXME: When user use Xshell or MobaXTerm, error "<no-record>
+ ;; is undefined" will be exist, this may be not a pyim's bug.
+ ;; but I do not know how to solve this problem, so I do this
ugly
+ ;; hack, and wait others help ...
+ ;; 1. https://github.com/tumashu/pyim/issues/402
+ ;; 2.
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=bd5c7404195e45f11946b4e0933a1f8b697d8b87
+ key)
+ unread-command-events)
+ (append (mapcan (lambda (e)
+ (list (if window-system
+ (cons 'no-record e)
+ e)))
(append key nil))
unread-command-events))))