From fbd06dec50f645f96a1729de73a15b5e99de24fd Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 23 Feb 2026 18:42:42 -0600 Subject: Bump minimum Emacs version to 27.1 and require subr-x Package uses decoded-time-* accessors, time-equal-p (27.1+), and subr-x functions (when-let*, hash-table-values, string-empty-p). Remove stale "Emacs 26 compatibility" comments. --- chime.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chime.el b/chime.el index a96a1db..301d224 100644 --- a/chime.el +++ b/chime.el @@ -7,7 +7,7 @@ ;; Original Author: Artem Khramov ;; Created: 6 Jan 2017 ;; Version: 0.6.0 -;; Package-Requires: ((alert "1.2") (async "1.9.3") (dash "2.18.0") (emacs "26.1")) +;; Package-Requires: ((alert "1.2") (async "1.9.3") (dash "2.18.0") (emacs "27.1")) ;; Keywords: notification alert org org-agenda agenda calendar chime sound ;; URL: https://github.com/cjennings/chime @@ -64,6 +64,7 @@ (require 'org-agenda) (require 'org-duration) (require 'cl-lib) +(require 'subr-x) ;; Declare functions from chime-debug.el (loaded conditionally) (declare-function chime-debug-monitor-event-loading "chime-debug") @@ -791,7 +792,7 @@ where N is `chime-day-wide-advance-notice'." (is-all-day (not (chime--has-timestamp timestamp-str))) ;; Parse the date portion even without time (parsed (org-parse-time-string timestamp-str)) - ;; Use nth accessors for Emacs 26 compatibility + (year (nth 5 parsed)) (month (nth 4 parsed)) (day (nth 3 parsed))) @@ -881,7 +882,7 @@ Handles both same-day events and advance notices." (when-let* ((timestamp-str (car it)) (is-all-day (not (chime--has-timestamp timestamp-str))) (parsed (org-parse-time-string timestamp-str)) - ;; Use nth accessors for Emacs 26 compatibility + (year (nth 5 parsed)) (month (nth 4 parsed)) (day (nth 3 parsed))) -- cgit v1.2.3