~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
493856f
)
el/dot-emacs.el: Ensure that `diary-time-regexp' exists as a variable.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 10 Apr 2020 16:53:13 +0000
(17:53 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 10 Apr 2020 16:53:13 +0000
(17:53 +0100)
Otherwise later versions of Emacs (at least) report a warning at startup
about our advice on `diary-add-to-list'.
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index
a9e2d72
..
180b0b2
100644
(file)
--- 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