diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-04 14:14:39 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-04 14:14:39 -0500 |
| commit | 88a66244fd613662ee7d5d3a0ad4394cfafdb521 (patch) | |
| tree | 309782de6135f1b721ffe7471fc07de89c2ef57b | |
| parent | 583ba34888e1c82da1f2bffbc913477c2e6a6df6 (diff) | |
| download | emacs-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.
| -rw-r--r-- | wttrin-debug.el | 1 | ||||
| -rw-r--r-- | wttrin.el | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/wttrin-debug.el b/wttrin-debug.el index 329a248..d0473dd 100644 --- a/wttrin-debug.el +++ b/wttrin-debug.el @@ -33,6 +33,7 @@ ;; is already present. The defvar/declare-function suppress byte-compiler ;; warnings for symbols defined in the parent file. (defvar wttrin-debug) +(defvar wttrin--force-refresh) (declare-function wttrin--get-cached-or-fetch "wttrin") ;;;###autoload @@ -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 |
