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

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

[elpa] externals/kiwix 6878b7d 182/192: add condition to detect kiwix se


From: Stefan Monnier
Subject: [elpa] externals/kiwix 6878b7d 182/192: add condition to detect kiwix server is available when get search hints
Date: Sat, 19 Dec 2020 00:41:56 -0500 (EST)

branch: externals/kiwix
commit 6878b7d66b0e2d45a9df86f880acc9c7122e3bbc
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    add condition to detect kiwix server is available when get search hints
---
 kiwix.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kiwix.el b/kiwix.el
index df65c8e..178d58d 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -251,6 +251,8 @@ Like in function `kiwix-ajax-search-hints'.")
   "Instantly AJAX request to get available Kiwix entry keywords
 list and return a list result."
   (kiwix-server-url-update)
+  (kiwix-ping-server)
+  (when (and input kiwix-server-available?)
     (let* ((library (or selected-library
                         (kiwix--get-library-name (or kiwix--selected-library
                                                      kiwix-default-library))))



reply via email to

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