branch: externals/kiwix
commit d92a371c9f44ae9747d880130dcaa7e264919e4f
Author: Shohei YOSHIDA <[email protected]>
Commit: Shohei YOSHIDA <[email protected]>
Fix some byte-compile warnings
- Use cl-lib macros instead of cl.el ones
- Load libraries for using those functions
---
kiwix.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index c533f57..9c2e3b5 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -38,6 +38,9 @@
(require 'cl-lib)
(require 'request)
+(require 'subr-x)
+(require 'thingatpt)
+(require 'json)
(if (featurep 'ivy) (require 'ivy))
(defgroup kiwix-mode nil
@@ -263,7 +266,7 @@ list and return a list result."
:sync t
:headers '(("Content-Type" . "application/json"))
:parser #'json-read
- :success (function*
+ :success (cl-function
(lambda (&key data &allow-other-keys)
data)))))))
(if (vectorp data)
@@ -282,7 +285,7 @@ for query string and library interactively."
(progn
(setq kiwix--selected-library (kiwix-select-library))
(let* ((library kiwix--selected-library)
- (query (case kiwix-default-completing-read
+ (query (cl-case kiwix-default-completing-read
('helm
(helm :source (helm-build-async-source
"kiwix-helm-search-hints"
:candidates-process