From 3d24d0fa3400d1364383c27734d5f36c4b49a361 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 10 Apr 2020 17:53:13 +0100 Subject: [PATCH] el/dot-emacs.el: Ensure that `diary-time-regexp' exists as a variable. Otherwise later versions of Emacs (at least) report a warning at startup about our advice on `diary-add-to-list'. --- el/dot-emacs.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index a9e2d72..180b0b2 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -404,6 +404,8 @@ as output rather than a string." (let ((mdw-diary-for-org-mode-p t)) ad-do-it)) +(defvar diary-time-regexp nil) + (defadvice diary-add-to-list (before mdw-trim-leading-space compile activate) "Trim leading space from the diary entry string." (save-match-data -- 2.11.0