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

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

[elpa] externals/pyim ad22e23d3b 3/3: Simplify pyim-cstring-to-pinyin--f


From: ELPA Syncer
Subject: [elpa] externals/pyim ad22e23d3b 3/3: Simplify pyim-cstring-to-pinyin--from-dcache
Date: Tue, 17 Jan 2023 23:58:06 -0500 (EST)

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

    Simplify pyim-cstring-to-pinyin--from-dcache
---
 pyim-cstring.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pyim-cstring.el b/pyim-cstring.el
index 07d29bafa9..f674756918 100644
--- a/pyim-cstring.el
+++ b/pyim-cstring.el
@@ -111,10 +111,9 @@ BUG: 当 STRING 中包含其它标点符号,并且设置 SEPERATER 时,结
 
 (defun pyim-cstring-to-pinyin--from-dcache (cstring)
   "从 Dcache 中搜索 CSTRING 对应的拼音。"
-  (let* ((string-parts (pyim-pymap-split-string cstring))
-         (pinyins-list
+  (let* ((pinyins-list
           (mapcar #'pyim-cstring--get-pinyin-code
-                  string-parts)))
+                  (pyim-pymap-split-string cstring))))
     (unless (member nil pinyins-list)
       (list (apply #'append pinyins-list)))))
 



reply via email to

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