From c2eed16410e407cf9e6d3bc2fa3a5f422988cbc8 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Mon, 2 Oct 2023 16:35:42 -0400 Subject: add buffer as something we can set from the sexp --- emacsconf-schedule.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacsconf-schedule.el') diff --git a/emacsconf-schedule.el b/emacsconf-schedule.el index 34ac5f6..72ed423 100644 --- a/emacsconf-schedule.el +++ b/emacsconf-schedule.el @@ -159,6 +159,8 @@ Pairs with `emacsconf-schedule-dump-sexp'." (error "Not yet implemented") (let ((start-prop (or (plist-get (cdr seq) :start) (and (stringp (cdr seq)) (cdr seq)))) + (buffer-prop (when (plist-get (cdr seq) :buffer) + (number-to-string (plist-get (cdr seq) :buffer)))) (time-prop (or (plist-get (cdr seq) :time) ; this is duration in minutes (and (numberp (cdr seq)) (cdr seq)))) (track-prop (plist-get (cdr seq) :track))) @@ -173,6 +175,8 @@ Pairs with `emacsconf-schedule-dump-sexp'." emacsconf-timezone) :start-time (date-to-time start-prop) :fixed-time t)) + (when buffer-prop + (list :buffer buffer-prop)) (when track-prop (list :track track-prop)) (when time-prop -- cgit v1.2.3