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

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

[elpa] externals/pyim 74fdade342 16/26: Add ignore-errors in pyim-proces


From: ELPA Syncer
Subject: [elpa] externals/pyim 74fdade342 16/26: Add ignore-errors in pyim-process-with-entered-buffer.
Date: Sun, 26 Jun 2022 10:57:52 -0400 (EDT)

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

    Add ignore-errors in pyim-process-with-entered-buffer.
---
 pyim-process.el | 3 ++-
 pyim.el         | 9 +++------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/pyim-process.el b/pyim-process.el
index 669c87a571..b169119349 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -363,7 +363,8 @@ imobj 组合构成在一起,构成了 imobjs 这个概念。比如:
 中的信息。"
   (declare (indent 0) (debug t))
   `(pyim-entered-with-entered-buffer
-     ,@forms))
+     (ignore-errors
+       ,@forms)))
 
 (defun pyim-process-next-imelem-position (num &optional search-forward start)
   "从 `pyim-entered--buffer' 的当前位置,找到下一个或者下 NUM 个 imelem 对应的位置
diff --git a/pyim.el b/pyim.el
index 6862eecc6b..59c7c2a8c1 100644
--- a/pyim.el
+++ b/pyim.el
@@ -534,16 +534,14 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
   "光标前移"
   (interactive)
   (pyim-process-with-entered-buffer
-    (ignore-errors
-      (forward-char)))
+    (forward-char))
   (pyim-process-run))
 
 (defun pyim-backward-point ()
   "光标后移"
   (interactive)
   (pyim-process-with-entered-buffer
-    (ignore-errors
-      (backward-char)))
+    (backward-char))
   (pyim-process-run))
 
 (defun pyim-backward-imelem (&optional search-forward)
@@ -579,8 +577,7 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
   "向后删除1个字符"
   (interactive)
   (pyim-process-with-entered-buffer
-    (ignore-errors
-      (delete-char (- 0 (or n 1)))))
+    (delete-char (- 0 (or n 1))))
   (if (> (length (pyim-process-get-entered 'point-before)) 0)
       (pyim-process-run)
     (pyim-process-outcome-handle "")



reply via email to

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