branch: externals/kiwix
commit 2d317414e7f6059b3b6011a81d87b8df9da3c73d
Author: stardiviner <numbch...@gmail.com>
Commit: stardiviner <numbch...@gmail.com>

    auto launch server if ping not available
---
 kiwix.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kiwix.el b/kiwix.el
index afcd894..f84eed8 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -265,7 +265,8 @@ list and return a list result."
 Or When prefix argument `INTERACTIVELY' specified, then prompt
 for query string and library interactively."
   (interactive "P")
-  (kiwix-ping-server)
+  (unless (kiwix-ping-server)
+    (kiwix-launch-server))
   (if kiwix-server-available?
       (progn
         (setq kiwix--selected-library (if (or kiwix-search-interactively 
interactively)

Reply via email to