branch: externals/pyim
commit 11943d55e4b71e92300067069376cb14bbef89b1
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
* 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