From f550d134f4a1ad30c425285c4d390f7277cbee32 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 4 Apr 2026 13:32:47 -0500 Subject: Remove dead code and reduce default tooltip lookahead to 1 week Remove chime--agenda-buffer-name (unused variable) and chime--extract-birthday-year (superseded by chime--parse-birthday). Reduce chime-tooltip-lookahead-hours from 8760 (1 year) to 168 (1 week). The 1-year default caused org-agenda-list to scan a 365-day span every check cycle, which is slow for large org collections. The tooltip only shows 5 events, so a week is sufficient for most users. --- convert-org-contacts-birthdays.el | 9 --------- 1 file changed, 9 deletions(-) (limited to 'convert-org-contacts-birthdays.el') diff --git a/convert-org-contacts-birthdays.el b/convert-org-contacts-birthdays.el index eea79a8..373613a 100644 --- a/convert-org-contacts-birthdays.el +++ b/convert-org-contacts-birthdays.el @@ -63,15 +63,6 @@ (require 'org) -(defun chime--extract-birthday-year (birthday-string) - "Extract year from BIRTHDAY-STRING, handling various formats. -Returns nil if no year is present or if year should be ignored. -Handles formats like: - 2000-03-15 - 03-15 - 1985-12-25" - (when (string-match "^\\([0-9]\\{4\\}\\)-[0-9]\\{2\\}-[0-9]\\{2\\}$" birthday-string) - (string-to-number (match-string 1 birthday-string)))) (defun chime--parse-birthday (birthday-string) "Parse BIRTHDAY-STRING into (YEAR MONTH DAY) list. -- cgit v1.2.3