[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 86c163c 06/10: Many syntax etc minor fixes
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 86c163c 06/10: Many syntax etc minor fixes |
Date: |
Wed, 30 Dec 2020 16:32:22 -0500 (EST) |
branch: externals/kiwix
commit 86c163cbc0515e9e516f05e809796087b1d3ba8d
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: stardiviner <numbchild@gmail.com>
Many syntax etc minor fixes
---
kiwix.el | 42 ++++++++++++++++++++----------------------
org-kiwix.el | 4 ++--
2 files changed, 22 insertions(+), 24 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index 414542f..4a9c2a3 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -28,7 +28,7 @@
;;; Commentary:
-;;; This currently only works for Linux, not tested for Mac OS X and Windows.
+;;; This currently only works for GNU/Linux, not tested for Mac OS X and
Windows.
;;;; Kiwix installation
;;
@@ -93,7 +93,8 @@
(let ((kiwix-dir "~/.www.kiwix.org/kiwix"))
(if (and (file-directory-p kiwix-dir) (file-readable-p kiwix-dir))
kiwix-dir
- (warn "ERROR: Kiwix profile directory \"~/.www.kiwix.org/kiwix\" is not
accessible."))))
+ (warn "ERROR: Kiwix profile directory \"~/.www.kiwix.org/kiwix\" is not
accessible.")
+ nil)))
(defcustom kiwix-default-data-profile-name
(when (kiwix-dir-detect)
@@ -116,7 +117,8 @@
(defcustom kiwix-default-completing-read (cond ((fboundp 'ivy-read) 'ivy)
((fboundp 'helm) 'helm))
- "Kiwix default completion frontend. Currently Ivy ('ivy) and Helm ('helm)
both supported."
+ "Kiwix default completion frontend.
+Currently Ivy ('ivy) and Helm ('helm) both supported."
:type 'symbol
:safe #'symbolp)
@@ -260,14 +262,14 @@ list and return a list result."
(data (request-response-data
(let ((inhibit-message t))
(request ajax-url
- :type "GET"
- :sync t
- :headers '(("Content-Type" . "application/json"))
- :parser #'json-read
- :success (cl-function
- (lambda (&key data &allow-other-keys)
- data)))))))
- (if (vectorp data) (mapcar 'cdar data)))))
+ :type "GET"
+ :sync t
+ :headers '(("Content-Type" . "application/json"))
+ :parser #'json-read
+ :success (cl-function
+ (lambda (&key data &allow-other-keys)
+ data)))))))
+ (if (vectorp data) (mapcar #'cdar data)))))
(defun kiwix--get-thing-at-point ()
"Get region select text or symbol at point."
@@ -286,20 +288,20 @@ list and return a list result."
(progn
(setq kiwix--selected-library (kiwix-select-library))
(let* ((library kiwix--selected-library)
- (query (cl-case kiwix-default-completing-read
+ (query (pcase kiwix-default-completing-read
('helm
(helm :source (helm-build-async-source
"kiwix-helm-search-hints"
:candidates-process
- `(lambda (input)
- (apply 'kiwix-ajax-search-hints
- input
`(,kiwix--selected-library))))
+ (lambda (input)
+ (apply #'kiwix-ajax-search-hints
+ input
`(,kiwix--selected-library))))
:input (kiwix--get-thing-at-point)
:buffer "*helm kiwix completion candidates*"))
('ivy
(ivy-read "Kiwix related entries: "
- `(lambda (input)
- (apply 'kiwix-ajax-search-hints
- input
`(,kiwix--selected-library)))
+ (lambda (input)
+ (apply #'kiwix-ajax-search-hints
+ input `(,kiwix--selected-library)))
:predicate nil
:require-match nil
:initial-input (kiwix--get-thing-at-point)
@@ -339,12 +341,8 @@ list and return a list result."
;;;###autoload
(define-minor-mode kiwix-mode
"Kiwix global minor mode for searching Kiwix serve."
- :require 'kiwix-mode
- :init-value nil
:global t
:lighter " Kiwix"
- :group 'kiwix-mode
- :keymap kiwix-mode-map
(if kiwix-mode (kiwix-mode-enable) (kiwix-mode-disable)))
diff --git a/org-kiwix.el b/org-kiwix.el
index 8dbfd77..173d4f6 100644
--- a/org-kiwix.el
+++ b/org-kiwix.el
@@ -1,6 +1,6 @@
;;; org-kiwix.el --- Org Mode link support -*- lexical-binding: t; -*-
-;;; Time-stamp: <2020-12-29 17:34:08 stardiviner>
+;;; Time-stamp: <2020-12-29 17:50:34 stardiviner>
;; Copyright (C) 2019-2020 Free Software Foundation, Inc.
@@ -21,7 +21,7 @@
;;; Commentary:
-;;; Support Org-mode
+;; Support Org-mode
;;
;; - [[wikipedia:(library):query]]
;; - [[wikipedia:query]]
- [elpa] externals/kiwix updated (3e1275d -> e3b9b50), Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix b6e2189 09/10: Update kiwix.el commentary about Kiwix installation, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix 42209ba 01/10: bump version to 1.0.1, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix e3b9b50 10/10: declare helm, ivy functions to fix byte-compiler warnings, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix 88d7b5b 08/10: Fix compilation error: functions are not known to be defined, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix 86c163c 06/10: Many syntax etc minor fixes,
Stefan Monnier <=
- [elpa] externals/kiwix 64ca93a 05/10: remove un-necessary the append t argument, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix 601757e 07/10: Add declaration on README about package is GPLv3 licensed, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix 85c3a05 03/10: Use same initial input for Ivy and Helm and extract the login into function, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix 0acfd6a 04/10: Remove un-necessary autoload cookies, improve config of org-kiwix, Stefan Monnier, 2020/12/30
- [elpa] externals/kiwix 207eb5f 02/10: Fix .zim files matching in candidates, Stefan Monnier, 2020/12/30