branch: externals/pyim commit 99278a0ea0e861089942d68cb4615194dd0a95fe Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
* pyim-common.el (pyim-add-unread-command-events): use when instead if. --- pyim-common.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyim-common.el b/pyim-common.el index c431e8b..8003582 100644 --- a/pyim-common.el +++ b/pyim-common.el @@ -181,7 +181,8 @@ duplicates. When RESET is non-nil, the events in `unread-command-events' are first discarded. This function is a fork of `quail-add-unread-command-events'." - (if reset (setq unread-command-events nil)) + (when reset + (setq unread-command-events nil)) (setq unread-command-events (if (characterp key) (cons (cons 'no-record key) unread-command-events)