From bf989bb594680eb2e3b69f55752353aa33cb47bb Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 13 Nov 2025 14:14:45 -0600 Subject: refactor: core: rename wttrin-mode-line-favorite-location to wttrin-favorite-location Renamed variable to remove 'mode-line' prefix, making it usable for future location-based features beyond mode-line display. Updated all references in code, tests, and documentation. All 187 tests passing. --- tests/test-wttrin-ansi-color-rendering.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test-wttrin-ansi-color-rendering.el') diff --git a/tests/test-wttrin-ansi-color-rendering.el b/tests/test-wttrin-ansi-color-rendering.el index 0945a2f..656971b 100644 --- a/tests/test-wttrin-ansi-color-rendering.el +++ b/tests/test-wttrin-ansi-color-rendering.el @@ -120,7 +120,7 @@ This reproduces the bug where mode-line click shows white text." (let* ((location "Paris") (cache-key (wttrin--make-cache-key location)) (now 1000.0) - (wttrin-mode-line-favorite-location location)) + (wttrin-favorite-location location)) ;; Mock the async fetch to return ANSI-coded data (cl-letf (((symbol-function 'float-time) @@ -259,7 +259,7 @@ This is the exact user workflow that exposes the bug." (unwind-protect (let* ((location "Tokyo") (now 1000.0) - (wttrin-mode-line-favorite-location location) + (wttrin-favorite-location location) (mode-line-fetch-count 0) (main-fetch-count 0)) -- cgit v1.2.3