From mboxrd@z Thu Jan 1 00:00:00 1970 From: jeeger Subject: Custom timestamps in date ranges Date: Wed, 05 Jul 2017 15:52:30 +0200 Message-ID: <9b107e8f40a94902df693fd65a4a376a@mail.thenybble.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSkjU-00016e-MA for emacs-orgmode@gnu.org; Wed, 05 Jul 2017 09:52:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSkjP-0003Il-RN for emacs-orgmode@gnu.org; Wed, 05 Jul 2017 09:52:44 -0400 Received: from thenybble.de ([91.250.113.248]:38502 helo=mail.thenybble.de) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSkjP-0003Dw-HD for emacs-orgmode@gnu.org; Wed, 05 Jul 2017 09:52:39 -0400 Received: from localhost ([127.0.0.1] helo=thenybble.de) by mail.thenybble.de with esmtpa (Exim 4.84_2) (envelope-from ) id 1dSkjG-0007xp-Qd for emacs-orgmode@gnu.org; Wed, 05 Jul 2017 15:52:30 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello! 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. Regards, Jan Seeger