[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 46b94dfbea 17/22: Add pyim-punctuation-escape-p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 46b94dfbea 17/22: Add pyim-punctuation-escape-p |
Date: |
Fri, 24 Jun 2022 16:57:52 -0400 (EDT) |
branch: externals/pyim
commit 46b94dfbeaf83a438c2de6e9fcc03a04d8b6e32b
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Add pyim-punctuation-escape-p
---
pyim-process.el | 8 ++------
pyim-punctuation.el | 2 ++
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/pyim-process.el b/pyim-process.el
index 807d88f0b9..31450e1ed1 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -693,12 +693,8 @@ alist 列表。"
;; 2. item2
;; 3. item3
- ;; 在这种情况下,数字后面输入句号必须是半角句号而不是全角句号,
- ;; pyim 调用 `pyim-process-outcome-handle-char' 时,会检测光标前面的字符,如果这个
- ;; 字符属于 `pyim-punctuation-escape-list' ,pyim 将输入半角标点,
- ;; 具体细节见:`pyim-process-outcome-handle-char'
- ((member (char-before)
- pyim-punctuation-escape-list)
+ ;; 在这种情况下,数字后面输入句号必须是半角句号而不是全角句号。
+ ((pyim-punctuation-escape-p (char-before))
str)
;; 当 `pyim-punctuation-half-width-functions' 中
diff --git a/pyim-punctuation.el b/pyim-punctuation.el
index 48ff735a15..fadead2d4c 100644
--- a/pyim-punctuation.el
+++ b/pyim-punctuation.el
@@ -217,6 +217,8 @@ PUNCT-LIST 格式类似:
(car punc)
(nth 1 punc)))))
+(defun pyim-punctuation-escape-p (char)
+ (member char pyim-punctuation-escape-list))
;; * Footer
(provide 'pyim-punctuation)
- [elpa] externals/pyim 4ff29d474a 19/22: Add functions about assistant, (continued)
- [elpa] externals/pyim 4ff29d474a 19/22: Add functions about assistant, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 0cbf92253d 16/22: pyim-indicator-stop-daemon -> pyim-indicator--stop-daemon, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 6143931277 18/22: Sort pyim-punctuation.el, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim aa500a5174 20/22: pyim-scheme-enable-assistant-p -> pyim-scheme--enable-assistant-p, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim b744349efb 02/22: pyim-process-input-ascii -> pyim-process--input-ascii, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 9fbdc6c19e 13/22: pyim-process-self-insert-commands -> pyim-process--self-insert-commands, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim c94f38ffda 22/22: Add pyim-scheme-get-all-schemes, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim a457fb8960 06/22: pyim-process-last-created-words -> pyim-process--last-created-words, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 97c95520f7 07/22: Add functions about pyim-process-translating, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim d369b1a191 09/22: Sort pyim-process.el, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 46b94dfbea 17/22: Add pyim-punctuation-escape-p,
ELPA Syncer <=
- [elpa] externals/pyim c721f2075f 15/22: pyim-indicator-start-daemon -> pyim-indicator--start-daemon, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 4ed3eb3c13 10/22: pyim-process--run-delay -> pyim-process-run-delay, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 47ca11bebb 12/22: Add pyim-process-register-self-insert-command, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 74ab54b340 14/22: pyim-dhashcache-count-types -> pyim-dhashcache--count-types, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 24cbb3ade9 21/22: pyim-schemes -> pyim-scheme--all-schemes, ELPA Syncer, 2022/06/24