diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-07-06 10:25:18 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-07-06 10:25:18 +0200 |
commit | 1b3c7c28cf1f51475e51a0bc6171d4b53e703e77 (patch) | |
tree | f2eaa61f8b25bbed897d11a5d630711d5c86cf8a | |
parent | b855acc8783eaab6f3b2fb85d84ede96b0432056 (diff) | |
parent | acf4f0881a2435f44ceaf15568d15e39490a1287 (diff) | |
download | org-mode-1b3c7c28cf1f51475e51a0bc6171d4b53e703e77.tar.gz |
Merge branch 'maint'
-rw-r--r-- | lisp/org-agenda.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index fbf520c..633bbf3 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4201,9 +4201,12 @@ items if they have an hour specification like [h]h:mm." ((= w1 w2) (format " (W%02d)" w1)) (t (format " (W%02d-W%02d)" w1 w2))) ":\n"))) - (add-text-properties s (1- (point)) (list 'face 'org-agenda-structure - 'org-date-line t)) - (org-agenda-mark-header-line s)) + ;; Add properties if we actually inserted a header. + (when (> (point) s) + (add-text-properties s (1- (point)) + (list 'face 'org-agenda-structure + 'org-date-line t)) + (org-agenda-mark-header-line s))) (while (setq d (pop day-numbers)) (setq date (calendar-gregorian-from-absolute d) s (point)) |