From cbff3c6ce691a3a1d2f5636384e29d43f0e1d236 Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Tue, 30 May 2023 14:04:20 +0200 Subject: [PATCH] =?UTF-8?q?Air=20Quality=20Index=20in=20Vi=C5=A1njan=20is?= =?UTF-8?q?=2040=20and=20the=20dominant=20pollutant=20is=20o3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aqi.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/aqi.el b/aqi.el index 6e54fc1..38c7f26 100644 --- a/aqi.el +++ b/aqi.el @@ -57,11 +57,12 @@ ;; Data from WAQI can be cached, since it's usually refreshed hourly. (defcustom aqi-use-cache nil - "When set to 't' will use cached data, otherwise get new data on each call." + "When set to t will use cached data, otherwise get new data on each call." :type 'boolean) (defcustom aqi-cache-refresh-period 0 - "Cached data can be refreshed at a given interval (in minutes) or 'nil' to never refresh." + "Cached data can be refreshed at a given interval (in minutes). +Set to nil to never refresh." :type 'number) (defvar aqi-cached-data '(("None" . "None")) @@ -88,21 +89,21 @@ (assoc-default city aqi-cached-data)) (defun aqi--cached-city? (city) - "Return 't' if AQI data from CITY has been cached." + "Return t if AQI data from CITY has been cached." (if (assoc-default city aqi-cached-data) t nil)) ;; data munging (defmacro aqi--make-city-raw-accessor (name aref) - "Macro to create an accesor NAME with a 'let-alist' AREF (or function)." + "Macro to create accessor NAME with binding `let-alist' AREF (or function)." `(fset ,name (lambda (city) (aqi-request city) (let-alist (assoc-default city aqi-cached-data) ,aref)))) (defmacro aqi--make-city-format-accessor (name aref) - "Macro to create an accesor NAME with a 'let-alist' AREF (or function)." + "Macro to create accessor NAME with binding `let-alist' AREF (or function)." `(fset ,name (lambda (city) (aqi-request city)