diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-04 09:09:28 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-04 09:09:28 -0600 |
| commit | d05a8c84310ad3122c1a38f113bd93bca3f7f58a (patch) | |
| tree | 2e4074845979729e8e370f998b8c5dea6e2cb5d4 /Makefile | |
| parent | 520203cfb54091dae7647a51a5910bb094fd1c4f (diff) | |
feat(emacs): Add asynchronous weather fetching to wttrin
Introduce asynchronous data fetching to the wttrin.el Emacs package.
This enhancement avoids blocking Emacs during data retrieval by
using `url-retrieve` for async calls. The behavior is controlled via
a new customizable variable `wttrin-use-async`. Tests have been
added for the new async behavior to ensure proper functionality.feat:makefile): Add package initialization for Emacs batch
Enhance Makefile with package support by loading and initializing
MELPA archive before validating and compiling, ensuring required
packages are available during these operations.
feat(tests): Add unit tests for `wttrin--display-weather`
Introduce comprehensive tests for `wttrin--display-weather` function
to validate buffer creation, content, keybindings, and error
handling.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -163,7 +163,11 @@ validate-parens: validate: @echo "Loading wttrin.el to verify compilation..." - @$(EMACS_BATCH) -L $(PROJECT_ROOT) \ + @$(EMACS_BATCH) \ + --eval "(require 'package)" \ + --eval "(add-to-list 'package-archives '(\"melpa\" . \"https://melpa.org/packages/\") t)" \ + --eval "(package-initialize)" \ + -L $(PROJECT_ROOT) \ --eval "(condition-case err \ (progn \ (load-file \"$(MAIN_FILE)\") \ @@ -176,7 +180,11 @@ validate: compile: @echo "Byte-compiling wttrin.el..." - @$(EMACS_BATCH) -L $(PROJECT_ROOT) \ + @$(EMACS_BATCH) \ + --eval "(require 'package)" \ + --eval "(add-to-list 'package-archives '(\"melpa\" . \"https://melpa.org/packages/\") t)" \ + --eval "(package-initialize)" \ + -L $(PROJECT_ROOT) \ --eval "(progn \ (setq byte-compile-error-on-warn nil) \ (batch-byte-compile))" $(MAIN_FILE) |
