branch: externals/kiwix commit cb3e2531a55b896b9b41f38f97a597c26433da8e Merge: 4bdf16b d92a371 Author: stardiviner <numbch...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #2 from syohex/syohex/warnings Fix some byte-compile warnings --- 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