summaryrefslogtreecommitdiff
path: root/wttrin.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-04 14:14:39 -0500
committerCraig Jennings <c@cjennings.net>2026-04-04 14:14:39 -0500
commit88a66244fd613662ee7d5d3a0ad4394cfafdb521 (patch)
tree309782de6135f1b721ffe7471fc07de89c2ef57b /wttrin.el
parent583ba34888e1c82da1f2bffbc913477c2e6a6df6 (diff)
downloademacs-wttrin-88a66244fd613662ee7d5d3a0ad4394cfafdb521.tar.gz
emacs-wttrin-88a66244fd613662ee7d5d3a0ad4394cfafdb521.zip
fix: clean byte-compilation warnings
Move define-obsolete-variable-alias before its referent defcustom to fix "alias should be declared before its referent" warning. Add defvar for wttrin--force-refresh in wttrin-debug.el so the byte-compiler knows the dynamic variable is intentional.
Diffstat (limited to 'wttrin.el')
-rw-r--r--wttrin.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/wttrin.el b/wttrin.el
index 982e0a0..b78aeaf 100644
--- a/wttrin.el
+++ b/wttrin.el
@@ -93,6 +93,8 @@ units (default)."
:type 'string)
+(define-obsolete-variable-alias 'wttrin-cache-ttl 'wttrin-refresh-interval "0.3.0")
+
(defcustom wttrin-refresh-interval 3600 ; 1 hour
"Interval in seconds between proactive weather data refreshes.
Controls how often the background timer refreshes cached weather data
@@ -102,8 +104,6 @@ minutes, so values below 600 just waste their bandwidth."
:group 'wttrin
:type 'integer)
-(define-obsolete-variable-alias 'wttrin-cache-ttl 'wttrin-refresh-interval "0.3.0")
-
(defcustom wttrin-cache-max-entries 50
"Maximum number of entries to keep in cache."
:group 'wttrin