[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
- [elpa] externals/pyim 291798d23d 09/58: pyim-cregexp-scheme -> pyim-cregexp--scheme, (continued)
- [elpa] externals/pyim 291798d23d 09/58: pyim-cregexp-scheme -> pyim-cregexp--scheme, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim b243e7e8e7 15/58: pyim-isearch-search-fun -> pyim-isearch--search-fun, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 56505723bc 16/58: pyim-autoselector-xingma-1 -> pyim-autoselector--xingma, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim ea2988cf16 26/58: pyim-dict-manager-buffer -> pyim-dict-manager--buffer, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 91b1aa37da 11/58: pyim-cregexp-build-xingma-regexp-from-words -> pyim-cregexp--build-xingma-regexp-from-words, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 40ed5dc8a4 10/58: pyim-cregexp-quanpin- -> pyim-cregexp-quanpin--, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 2064692d35 40/58: pyim-liberime-get-code -> pyim-liberime--get-code, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 48e904bbe6 42/58: pyim-outcome-magic-convert-cache -> pyim-outcome--magic-convert-cache, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim d5d98bdbdb 12/58: pyim-cstring-partition -> pyim-cstring--partition, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 68e406ed4f 19/58: pyim-candidates-znabc-words -> pyim-candidates--znabc-words, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim df48854299 22/58: pyim-cloudim-parse-baidu-buffer -> pyim-cloudim--parse-baidu-buffer,
ELPA Syncer <=
- [elpa] externals/pyim 67f800c819 23/58: pyim-cloudim-parse-google-buffer -> pyim-cloudim--parse-google-buffer, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 0629a400d9 31/58: pyim-indicator-timer -> pyim-indicator--timer, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim d40f7c4f86 45/58: pyim-pinyin-yunmu -> pyim-pinyin--yunmu, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 889db4b5ab 49/58: pyim-pinyin-get-charpy -> pyim-pinyin--get-charpy, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim dfed7ddeaf 50/58: Sort pyim-pinyin.el, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 067ba514bd 56/58: pyim-pymap-py2cchar-cache3 -> pyim-pymap--py2cchar-cache3, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 29516cfd7a 35/58: pyim-indicator-update-mode-line -> pyim-indicator--update-mode-line, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 2a22da363a 39/58: pyim-liberime-create-word -> pyim-liberime--create-word, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 04ae08aa0f 41/58: Sort pyim-liberime.el, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim ed2c79b7f9 46/58: pyim-pinyin-valid-yunmu -> pyim-pinyin--valid-yunmu, ELPA Syncer, 2022/06/24