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

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

[elpa] externals/pyim 11943d5 4/5: * pyim-outcome.el (pyim-outcome-trigg


From: ELPA Syncer
Subject: [elpa] externals/pyim 11943d5 4/5: * pyim-outcome.el (pyim-outcome-trigger-function-default): Add proper space if without.
Date: Mon, 26 Apr 2021 00:57:10 -0400 (EDT)

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

    * pyim-outcome.el (pyim-outcome-trigger-function-default): Add proper space 
if without.
---
 pyim-outcome.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pyim-outcome.el b/pyim-outcome.el
index 6b48b4e..4f62fb4 100644
--- a/pyim-outcome.el
+++ b/pyim-outcome.el
@@ -316,15 +316,15 @@ alist 列表。"
         (insert string)
         (dotimes (_ 3) ;NOTE: 数字3是一个经验数字。
           (dolist (x `(;; 中文标点与英文之间的空格
-                       ("\\([,。;?!;、)】]\\) +\\([[:ascii:]]\\)" . "")
+                       ("\\([,。;?!;、)】]\\) *\\([[:ascii:]]\\)" . "")
                        ;; 英文与中文标点之间的空格
-                       ("\\([[:ascii:]]\\) +\\([(【]\\)" . "")
+                       ("\\([[:ascii:]]\\) *\\([(【]\\)" . "")
                        ;; 汉字与汉字之间的空格
-                       ("\\(\\cc\\) +\\(\\cc\\)" . "")
+                       ("\\(\\cc\\) *\\(\\cc\\)" . "")
                        ;; 英文与汉字之间的空格
-                       ("\\([[:ascii:]]\\) +\\(\\cc\\)" . ,sep)
+                       ("\\([[:ascii:]]\\) *\\(\\cc\\)" . ,sep)
                        ;; 汉字与英文之间的空格
-                       ("\\(\\cc\\) +\\([[:ascii:]]\\)" . ,sep)))
+                       ("\\(\\cc\\) *\\([[:ascii:]]\\)" . ,sep)))
             (goto-char (point-min))
             (while (re-search-forward (car x) nil t)
               (replace-match



reply via email to

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