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

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

[elpa] externals/pyim 78fdf2e863 2/3: pyim-cloudim:baidu run kill buffer


From: ELPA Syncer
Subject: [elpa] externals/pyim 78fdf2e863 2/3: pyim-cloudim:baidu run kill buffer.
Date: Thu, 12 May 2022 05:57:46 -0400 (EDT)

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

    pyim-cloudim:baidu run kill buffer.
    
            * pyim-cloudim.el (pyim-cloudim:baidu): kill buffer.
            (pyim-cloudim-parse-baidu-buffer): Do not run kill buffer.
---
 pyim-cloudim.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyim-cloudim.el b/pyim-cloudim.el
index 9903ec5111..c9fb2755e9 100644
--- a/pyim-cloudim.el
+++ b/pyim-cloudim.el
@@ -60,7 +60,8 @@
                    t nil 0.2)))
       (when (bufferp buffer)
         (with-current-buffer buffer
-          (pyim-cloudim-parse-baidu-buffer))))))
+          (prog1 (pyim-cloudim-parse-baidu-buffer)
+            (kill-buffer)))))))
 
 (defun pyim-cloudim-url-retrieve-sync (url &optional silent inhibit-cookies 
timeout)
   "Pyim 版本的 `url-retrieve-synchronously'.
@@ -130,7 +131,6 @@
                (decode-coding-string
                 (buffer-string)
                 'utf-8))))
-    (kill-buffer)
     (when (> (length word) 0)
       (list word))))
 



reply via email to

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