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

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

[elpa] externals/kiwix d92a371 189/192: Fix some byte-compile warnings


From: Stefan Monnier
Subject: [elpa] externals/kiwix d92a371 189/192: Fix some byte-compile warnings
Date: Sat, 19 Dec 2020 00:41:58 -0500 (EST)

branch: externals/kiwix
commit d92a371c9f44ae9747d880130dcaa7e264919e4f
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>

    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



reply via email to

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