[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Custom timestamps in date ranges

From: jeeger
Subject: [O] Custom timestamps in date ranges
Date: Wed, 05 Jul 2017 15:52:30 +0200
User-agent: Roundcube Webmail/1.1.5


I have a single-line patch to contribute. In my org-mode version (Org mode version 9.0.9 (9.0.9-30-g796a78-elpa)), custom timestamps do not correctly apply to date ranges. Only the second date is replaced in the custom date format. I've tracked this down to org-activate-dates. The line

      (if (match-end 3)
                  (org-display-custom-time (match-beginning 3) (match-end 3))
                  (org-display-custom-time (match-beginning 1) (match-end 1)))

leads to only the second of the date range being fontified. The corrected version is:

        (when (match-end 3)
                (org-display-custom-time (match-beginning 3) (match-end 3)))
        (org-display-custom-time (match-beginning 1) (match-end 1))

This fontifies the first date correctly as well.

Jan Seeger

reply via email to

[Prev in Thread] Current Thread [Next in Thread]