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

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

[elpa] externals/pyim b5e70bb176 8/8: Fix docstring warn.


From: ELPA Syncer
Subject: [elpa] externals/pyim b5e70bb176 8/8: Fix docstring warn.
Date: Wed, 8 Jun 2022 18:57:50 -0400 (EDT)

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

    Fix docstring warn.
---
 pyim-common.el      | 6 +++---
 pyim-dcache.el      | 2 +-
 pyim-dhashcache.el  | 2 +-
 pyim-punctuation.el | 2 +-
 pyim-pymap.el       | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/pyim-common.el b/pyim-common.el
index 3ab334a279..9c8047330f 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -77,7 +77,7 @@
 
 (defun pyim-permutate-list (list)
   "使用排列组合的方式重新排列 LIST.
-这个函数由 ‘二中’ 提供。"
+这个函数由 \"二中\" 提供。"
   (let ((list-head (car list))
         (list-tail (cdr list)))
     (cond ((null list-tail)
@@ -132,7 +132,7 @@ When CARE-FIRST-ONE is no-nil, ((a b c) (d e)) => (a d)."
     (nreverse output)))
 
 (defun pyim-char-before-to-string (num)
-  "得到光标前第 `num' 个字符,并将其转换为字符串。"
+  "得到光标前第 NUM 个字符,并将其转换为字符串。"
   (let* ((point (point))
          (point-before (- point num)))
     (when (and (> point-before 0)
@@ -140,7 +140,7 @@ When CARE-FIRST-ONE is no-nil, ((a b c) (d e)) => (a d)."
       (char-to-string (char-before point-before)))))
 
 (defun pyim-char-after-to-string (num)
-  "得到光标后第 `num' 个字符,并将其转换为字符串。"
+  "得到光标后第 NUM 个字符,并将其转换为字符串。"
   (let* ((point (point))
          (point-after (+ point num)))
     (when (char-after point-after)
diff --git a/pyim-dcache.el b/pyim-dcache.el
index 59e37922e6..79e0236bab 100644
--- a/pyim-dcache.el
+++ b/pyim-dcache.el
@@ -88,7 +88,7 @@ dcache 文件的方法让 pyim 正常工作。")
 (defmacro pyim-dcache-init-variable (variable &optional fallback-value)
   "初始化 VARIABLE.
 
-如果 VARIABLE 的值为 nil, 则使用 ‘pyim-dcache-directory’ 中对应文
+如果 VARIABLE 的值为 nil, 则使用 `pyim-dcache-directory' 中对应文
 件的内容来设置 VARIABLE 变量, 如果此时 VARIABLE 取值还是 nil, 那
 么就将 VARIABLE 的值设置为 FALLBACK-VALUE."
   `(when (and (symbolp ',variable) (not ,variable))
diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index 75c73f1f63..db2b0a8ad6 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -191,7 +191,7 @@
         (async-inject-variables "^pyim-.+?directory$")))
 
 (defun pyim-dhashcache-update-ishortcode2word (&optional force)
-  "读取 ‘pyim-dhashcache-icode2word’ 中的词库,创建 *简拼* 缓存,然后加载这个缓存.
+  "读取 `pyim-dhashcache-icode2word' 中的词库,创建 *简拼* 缓存,然后加载这个缓存.
 
 如果 FORCE 为真,强制加载缓存。"
   (interactive)
diff --git a/pyim-punctuation.el b/pyim-punctuation.el
index 0ae736b6ca..6507ce41cb 100644
--- a/pyim-punctuation.el
+++ b/pyim-punctuation.el
@@ -193,7 +193,7 @@ If you don't like this function, set the variable to nil")
   "返回合适的标点符号,PUNCT-LIST 为标点符号列表.
 
 这个函数用于处理成对的全角标点符号,简单来说:如果第一次输入的标
-点是:(‘)时,那么下一次输入的标点就是(’)。
+点是:\"“\"时,那么下一次输入的标点就是\"”\"。
 
 PUNCT-LIST 格式类似:
 
diff --git a/pyim-pymap.el b/pyim-pymap.el
index 054aa189de..8b6a03789a 100644
--- a/pyim-pymap.el
+++ b/pyim-pymap.el
@@ -528,7 +528,7 @@
 
 (\"满\" \"慢\" \"漫\"  ...)
 
-如果 INCLUDE-SEPERATOR 是 non-nil, 返回的列表包含一个 ‘|’ 号,pyim 用这个分隔符
+如果 INCLUDE-SEPERATOR 是 non-nil, 返回的列表包含一个 \"|\" 号,pyim 用这个分隔符
 来区分 3500 个常用汉字和生僻字。"
   (pyim-pymap-py2cchar-cache-create)
   (when (and pinyin (stringp pinyin))



reply via email to

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