diff options
author | Jan Seeger <jan.seeger@thenybble.de> | 2017-07-06 17:19:10 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-07-06 19:21:06 +0200 |
commit | 1849f391bc75e9e4e7dba9e8587f01532b6d7cdf (patch) | |
tree | 20d87226055ec8282100f43e834e55025dc5cd21 | |
parent | 61ffe97885c5e01c77cdf0023bb0e1a2d320261c (diff) | |
download | org-mode-1849f391bc75e9e4e7dba9e8587f01532b6d7cdf.tar.gz |
org.el: Fix custom timestamps for date ranges
* org.el (org-activate-dates): Change `org-activate-dates' to activate
custom timestamps for both dates in date ranges. Formerly, only the
second date would be activated. The reason was a misplaced
`if'. Replaced it with `when'. Also added doc comments.
TINYCHANGE
-rw-r--r-- | lisp/org.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el index bc4171d..0126cfc 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6208,9 +6208,10 @@ by a #." 'keymap org-mouse-map)) (org-rear-nonsticky-at (match-end 0)) (when org-display-custom-times - (if (match-end 3) - (org-display-custom-time (match-beginning 3) (match-end 3)) - (org-display-custom-time (match-beginning 1) (match-end 1)))) + ;; If it's a date range, activate custom time for second date. + (when (match-end 3) + (org-display-custom-time (match-beginning 3) (match-end 3))) + (org-display-custom-time (match-beginning 1) (match-end 1))) t)) (defvar-local org-target-link-regexp nil |