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

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

[elpa] externals/kiwix 2d31741 160/192: auto launch server if ping not a


From: Stefan Monnier
Subject: [elpa] externals/kiwix 2d31741 160/192: auto launch server if ping not available
Date: Sat, 19 Dec 2020 00:41:52 -0500 (EST)

branch: externals/kiwix
commit 2d317414e7f6059b3b6011a81d87b8df9da3c73d
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@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

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