emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pyim 99a03f1 6/6: * pyim-indicator.el (pyim-indicator-d


From: ELPA Syncer
Subject: [elpa] externals/pyim 99a03f1 6/6: * pyim-indicator.el (pyim-indicator-daemon-function): Ignore errors.
Date: Mon, 5 Jul 2021 02:57:16 -0400 (EDT)

branch: externals/pyim
commit 99a03f109dbe0b8ef31618de5a66b2c89b0429ac
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * pyim-indicator.el (pyim-indicator-daemon-function): Ignore errors.
---
 pyim-indicator.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/pyim-indicator.el b/pyim-indicator.el
index ac3aa90..809583a 100644
--- a/pyim-indicator.el
+++ b/pyim-indicator.el
@@ -82,10 +82,11 @@ Indicator 用于显示输入法当前输入状态(英文还是中文)。"
 
 (defun pyim-indicator-daemon-function (func)
   "`pyim-indicator-daemon' 内部使用的函数。"
-  (let ((chinese-input-p
-         (and (functionp func)
-              (funcall func))))
-    (funcall pyim-indicator chinese-input-p)))
+  (ignore-errors
+    (let ((chinese-input-p
+           (and (functionp func)
+                (funcall func))))
+      (funcall pyim-indicator chinese-input-p))))
 
 (defun pyim-indicator-default (chinese-input-p)
   "Pyim 默认使用的 indicator, 主要通过光标颜色和 mode-line 来显示输入状态。"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]