chiark
/
gitweb
/
~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 a9e2d72668e12c9f53f2902b2f341706395114e0..180b0b2dbae1a9db9d03812f95ba8f56aa837ebc 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-404,6
+404,8
@@
(defadvice org-agenda-list (around mdw-preserve-links activate)
(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