From: Mark Wooding Date: Fri, 10 Apr 2020 16:53:13 +0000 (+0100) Subject: el/dot-emacs.el: Ensure that `diary-time-regexp' exists as a variable. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/3d24d0fa3400d1364383c27734d5f36c4b49a361 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'. --- 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