GNU bug report logs - #78085
30.1; wrong iCalendar export with diary-float

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Timo E." <tengel@HIDDEN>; dated Sun, 27 Apr 2025 09:32:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 78085 <at> debbugs.gnu.org:


Received: (at 78085) by debbugs.gnu.org; 10 May 2025 09:42:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 10 05:42:53 2025
Received: from localhost ([127.0.0.1]:43990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDgjN-00062w-4s
	for submit <at> debbugs.gnu.org; Sat, 10 May 2025 05:42:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60782)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uDgjK-00062d-1m
 for 78085 <at> debbugs.gnu.org; Sat, 10 May 2025 05:42:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uDgjD-0002c4-ME; Sat, 10 May 2025 05:42:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Hori5bOv1cSfMs8RlgdQMNVvxMXk6LwxDj8BLRDmzjY=; b=AaiQKsyIbJnR
 JxWAq2UHqlUxPL84J050E6Rr4UBGl0llBn807ligz7ZTx28/arMbkSDiS7ugnuJfzOdVvrpZGDQU8
 AGIW0/YAGzpbaCHvd3B6Ids83ubsFT19nk0RXhFdnuCNDAXe2NF5wqst1OgE1JpLXzdYtBFrGMKWF
 ezDaNgGynNf+XrNuZpgIQMGmqPbg56FNffAjY/3bu3/YUCbtd2e86bb9qMMGYZ+WSrprzTa0S4eEJ
 B8y+0j24GFiEoMa7KGJA3GhMQ1Y+dSFLEbOAwoZeF+5HYNmUYW5pxGG7rV2Jzz4MNAzbSpEHGy3I2
 Q5ZKbtHjnbbgsjlySQ7BdA==;
Date: Sat, 10 May 2025 12:42:40 +0300
Message-Id: <86zffkajjj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Timo E." <tengel@HIDDEN>, Richard Lawrence <rwl@HIDDEN>
In-Reply-To: <92f29cf9-f6d8-4946-9bea-7bde1196c231@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#78085: 30.1; wrong iCalendar export with diary-float
References: <92f29cf9-f6d8-4946-9bea-7bde1196c231@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78085
Cc: 78085 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sun, 27 Apr 2025 11:05:20 +0200
> From:  "Timo E." via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> Hi,
> 
> the iCalendar export seems wrong when the .org file contains events 
> with diary-float.
> I reported this already to emacs-orgmode@HIDDEN, but it is not an 
> issue in Org mode but in 'icalendar--convert-float-to-ical'.
> 
> For example, my .org file contains:
> * my appointment
> %%(diary-float t 6 1) 1st Sat/month
> 
> The agenda M-x org-agenda-list shows this event correctly at the first 
> Saturday per month.
> The .ics file created with M-x org-export-dispatch, c (Export to 
> iCalendar), f (Current file) contains the event
> 
> BEGIN:VEVENT
> UID:DS1-ddf9e720-3c8a-4b2a-93d8-62dde9cdf5a8
> DTSTART;VALUE=DATE:20250418
> EXDATE;VALUE=DATE:20250418
> RRULE:FREQ=MONTHLY;BYDAY=1SA
> SUMMARY:1st Sat/month
> END:VEVENT
> 
> DSTART and EXDATE are set to the current date. (i.e. the date when the 
> .ics file is created). I think DSTART should be set to the next first 
> Saturday of the month. EXDATE is not required, as there are no 
> exceptions specified.
> 
> RFC 5545 says in 3.8.5.3. Recurrence Rule
> "The "DTSTART" property value SHOULD be synchronized with the 
> recurrence rule, if specified. The recurrence set generated with a 
> "DTSTART" property value not synchronized with the recurrence rule is 
> undefined."

Thank you for your report.

Richard, any comments or suggestions about this?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78085; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Apr 2025 09:31:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 27 05:31:24 2025
Received: from localhost ([127.0.0.1]:39143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u8yM8-0003lh-2P
	for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 05:31:24 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57458)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <tengel@HIDDEN>)
 id 1u8xxO-00024i-5n
 for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 05:05:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tengel@HIDDEN>)
 id 1u8xx7-0003d8-KT
 for bug-gnu-emacs@HIDDEN; Sun, 27 Apr 2025 05:05:36 -0400
Received: from mout-p-202.mailbox.org ([80.241.56.172])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <tengel@HIDDEN>)
 id 1u8xx5-0002Yb-MM
 for bug-gnu-emacs@HIDDEN; Sun, 27 Apr 2025 05:05:33 -0400
Received: from smtp102.mailbox.org (smtp102.mailbox.org
 [IPv6:2001:67c:2050:b231:465::102])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Zlgds6Xhqz9t0P
 for <bug-gnu-emacs@HIDDEN>; Sun, 27 Apr 2025 11:05:21 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1745744721;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=z83F2EvwCqkT7vgnqMl6O7aDQBB6/rjwEF5sldjhAiU=;
 b=vwUnrdP5sCT4Ix7n5ZIagK3w+e8WpK7cxFhCDRV7NmCzmQ/HRnCz69vGNAT3A2K84nQa29
 IJZMjoBO8xQ0e6f1WMFf8tstB/gobP8veNnLRLAx2YF4zKcHNpchywvrsK8xLgZnSLVIBw
 qsZ7zXFHzHOokT/voM7Z1B33Tlj5zt7vf5bBj9ZEb07jKb+HagwRbyJxb6qc+ZcaJN+BBF
 EFWZ+vg08qWUs9FVzj0Alw/ThtOwBdV1hzC8wigXaRDZkW+DndeczWzEiiDk5q44OKcM1W
 eneTehiqIUC/Q0RyeNlv52P7AWOH7HCabMS6ra7RgWXF3trHSMP990JFCO6kjQ==
Message-ID: <92f29cf9-f6d8-4946-9bea-7bde1196c231@HIDDEN>
Date: Sun, 27 Apr 2025 11:05:20 +0200
MIME-Version: 1.0
Content-Language: de-DE, en-US
To: bug-gnu-emacs@HIDDEN
From: "Timo E." <tengel@HIDDEN>
Subject: 30.1; wrong iCalendar export with diary-float
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-MBO-RS-META: w9q9kgh63b5h74w9q3gtgg65esmxgpdq
X-MBO-RS-ID: 60a45ec4a61d1722ce9
Received-SPF: pass client-ip=80.241.56.172; envelope-from=tengel@HIDDEN;
 helo=mout-p-202.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 27 Apr 2025 05:31:19 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi,

the iCalendar export seems wrong when the .org file contains events 
with diary-float.
I reported this already to emacs-orgmode@HIDDEN, but it is not an 
issue in Org mode but in 'icalendar--convert-float-to-ical'.

For example, my .org file contains:
* my appointment
%%(diary-float t 6 1) 1st Sat/month

The agenda M-x org-agenda-list shows this event correctly at the first 
Saturday per month.
The .ics file created with M-x org-export-dispatch, c (Export to 
iCalendar), f (Current file) contains the event

BEGIN:VEVENT
UID:DS1-ddf9e720-3c8a-4b2a-93d8-62dde9cdf5a8
DTSTART;VALUE=DATE:20250418
EXDATE;VALUE=DATE:20250418
RRULE:FREQ=MONTHLY;BYDAY=1SA
SUMMARY:1st Sat/month
END:VEVENT

DSTART and EXDATE are set to the current date. (i.e. the date when the 
.ics file is created). I think DSTART should be set to the next first 
Saturday of the month. EXDATE is not required, as there are no 
exceptions specified.

RFC 5545 says in 3.8.5.3. Recurrence Rule
"The "DTSTART" property value SHOULD be synchronized with the 
recurrence rule, if specified. The recurrence set generated with a 
"DTSTART" property value not synchronized with the recurrence rule is 
undefined."

Thanks
Timo





Acknowledgement sent to "Timo E." <tengel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#78085; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 10 May 2025 09:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.