aboutsummaryrefslogtreecommitdiff
path: root/convert-org-contacts-birthdays.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-04 13:32:47 -0500
committerCraig Jennings <c@cjennings.net>2026-04-04 13:32:47 -0500
commitf550d134f4a1ad30c425285c4d390f7277cbee32 (patch)
tree77574fc1cb7e6480b00c722e13e6f939b8deacb7 /convert-org-contacts-birthdays.el
parente681fcbc92c15cbc4e01ab879c3b407c715dc824 (diff)
downloadchime-f550d134f4a1ad30c425285c4d390f7277cbee32.tar.gz
chime-f550d134f4a1ad30c425285c4d390f7277cbee32.zip
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.
Diffstat (limited to 'convert-org-contacts-birthdays.el')
-rw-r--r--convert-org-contacts-birthdays.el9
1 files changed, 0 insertions, 9 deletions
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.