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

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

[elpa] externals/pyim df48854299 22/58: pyim-cloudim-parse-baidu-buffer


From: ELPA Syncer
Subject: [elpa] externals/pyim df48854299 22/58: pyim-cloudim-parse-baidu-buffer -> pyim-cloudim--parse-baidu-buffer
Date: Fri, 24 Jun 2022 06:57:53 -0400 (EDT)

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

    pyim-cloudim-parse-baidu-buffer -> pyim-cloudim--parse-baidu-buffer
---
 pyim-cloudim.el     | 6 +++---
 tests/pyim-tests.el | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pyim-cloudim.el b/pyim-cloudim.el
index 5469367e28..d7a6359005 100644
--- a/pyim-cloudim.el
+++ b/pyim-cloudim.el
@@ -52,11 +52,11 @@
       (url-retrieve
        (format "https://olime.baidu.com/py?py=%s"; str)
        (lambda (_)
-         (funcall callback (cons imobjs (pyim-cloudim-parse-baidu-buffer)))
+         (funcall callback (cons imobjs (pyim-cloudim--parse-baidu-buffer)))
          (kill-buffer))
        nil t))))
 
-(defun pyim-cloudim-parse-baidu-buffer ()
+(defun pyim-cloudim--parse-baidu-buffer ()
   "解析 `pyim-cloudim-url-retrieve-sync' 返回的 baidu buffer."
   ;; NOTE: 以前这个函数使用 `json-parse-buffer' 来处理返回的结果,但因为旧版本
   ;; Emacs 没有 `json-parse-buffer' 函数,所以现在改用这种简单粗暴的方式,虽然没
@@ -85,7 +85,7 @@
 
 (defun pyim-cloudim-parse-google-buffer ()
   "解析 `pyim-cloudim-url-retrieve-sync' 返回的 google buffer."
-  (pyim-cloudim-parse-baidu-buffer))
+  (pyim-cloudim--parse-baidu-buffer))
 
 ;; * Footer
 (provide 'pyim-cloudim)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 0539ca3a46..c8ee6cf29e 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1533,8 +1533,8 @@ Content-Type: text/plain; charset=utf-8
 Date: Sun, 08 May 2022 00:56:13 GMT
 
 
{\"0\":[[[\"你好\",5,{\"pinyin\":\"ni'hao\",\"type\":\"IMEDICT\"}]]],\"1\":\"ni'hao\",\"result\":[null]}")
-    (should (equal (pyim-cloudim-parse-baidu-buffer) '("你好")))
-    (should (equal (get-text-property 0 :comment (car 
(pyim-cloudim-parse-baidu-buffer))) "(云)")))
+    (should (equal (pyim-cloudim--parse-baidu-buffer) '("你好")))
+    (should (equal (get-text-property 0 :comment (car 
(pyim-cloudim--parse-baidu-buffer))) "(云)")))
 
   (with-temp-buffer
     (insert "HTTP/1.1 200 OK



reply via email to

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