From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2M5lIBKNvWRFEQAASxT56A (envelope-from ) for ; Sun, 23 Jul 2023 22:26:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AMjvHxKNvWQvQAAAauVa8A (envelope-from ) for ; Sun, 23 Jul 2023 22:26:58 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B54F065198 for ; Sun, 23 Jul 2023 22:26:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NnDWmEte; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690144018; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=W0IN3aOl9YyUtZX9KIoMUXheKNKXIF+HxAR0AFtz6c4=; b=eJUny9hT6DCybN+L3n7zsLnFzGsdOX3Lyqr7sQvxNy2SK/yaCNHoXX+DVMwJHX2HR8zQ4B ZanVTldT22IJG9R4I48OcJ1BxfPqDccfgMsd6+yPwOtH6RUC972gxC2MIlD3Brg/9YuKPo XubWKj1HMrMxoM2rv6nafKsSvDNUHZgmoOL5qT/l9oA26JzzE0/7BwEt7rjGKrnQYhsii3 +nDGXMAjkzTWDfzVNwR5a6dNWAve650Nml6xIlsgvaT5rmEjfGK4nAbr1p9OyGSed054OJ j4kjCMPX3piiIHYRfQwrCouIeD51Z0Xg7fergPt2jYTWAUcIRW30B0Klm2WMuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NnDWmEte; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690144018; a=rsa-sha256; cv=none; b=UfeeuWet0heZIHqw8dT3mKAnE/OrKCXj/y0g8hNbIHzj7VABzTNLoX5OoX3V21uXE0cqok 5sDOwwUv+zLFvmxc/rTQR1/fL6T3LHXSyUjyQN71ZKbjQ5bcPIszyVMbfY+SjRLW8tYUEJ tz3jAexDPU+/Ku/p24m9t7M/9QJ/0qmMWR34A6yrZ1Ts0PL6JS4oh0P3sSJFxdkzkDy9fA r+6+XHwzqaFml8+/hERvgHVnbuEJGRwQh8nlzxW7gZH7l6QId9iueHvVWnjFNYxInmCg36 L7tcsGeGsJ3EZWEpYL+CF9f0nYD/vaYQMnHhokhpKVixIML66+rRplWB4L3s5A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNfeP-0002yc-Pp; Sun, 23 Jul 2023 16:25:58 -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 ) id 1qNfeN-0002yT-C7 for emacs-orgmode@gnu.org; Sun, 23 Jul 2023 16:25:56 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNfeK-0001wf-Aw for emacs-orgmode@gnu.org; Sun, 23 Jul 2023 16:25:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7273F240027 for ; Sun, 23 Jul 2023 22:25:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690143947; bh=MOdE9A/pMgd41jLw+0QkMXdhgMkNfaoh4gQHIaDBgXY=; h=Message-ID:Subject:From:To:Cc:Date:MIME-Version:From; b=NnDWmEteNpJipTRcoNG53RrVmaVJTXji1CiuPFbsmaT78KHruZ/4HXY9ChPoD7A2S B0DCCNjV0Unoj3cMAkn68JE1hhwgT152iwOfarHQSegLeQAYR6h/Zop3Zr2P1J/lsx E8D0ww3iokY80F9V+hcF4RIdRlLzl18x85GsLNoHqSVm1cvNBSNGoEMECDMPaLOQjG hkTaRa7RA6KHwQBcbHtX8NPzwV/wuBwgKRKPtVXVYQuh40jO7vE1OPKPkIqAjsYWje ixLNhsJfhr9sG4VNmBD98rDlyp2fI+vIqqP/OMJ2pmuRTTZkxzqCtYPMtGnihCTYAR FkIM5rF6nHnBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R8FDB6xG2z6v2M; Sun, 23 Jul 2023 22:25:46 +0200 (CEST) Message-ID: <306bd343bb8b1b44db1097f3f78f5dcbcff4177a.camel@posteo.net> Subject: Re: Bug: org-anniversary dates not exported to iCalendar [9.4.6 (9.4.6-3-g37f69b-elpaplus @ /home/marcus/.emacs.d/elpa/org-plus-contrib-20210531/)] From: Marcus Zibrowius To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Date: Sun, 23 Jul 2023 20:25:46 +0000 In-Reply-To: <874jlxmnmk.fsf@localhost> References: <2688a48d5383625b5acd5b803ff6b8b947322369.camel@posteo.net> <874jlxmnmk.fsf@localhost> Content-Type: multipart/alternative; boundary="=-ls+Qev68aSMy0vd1fV5L" MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=marcus.zibrowius@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.83 X-Migadu-Queue-Id: B54F065198 X-Migadu-Spam-Score: -6.83 X-Migadu-Scanner: mx0.migadu.com X-TUID: uJrtsbw6TALf --=-ls+Qev68aSMy0vd1fV5L Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > This is because Emacs diary only looks=20 > `icalendar-export-sexp-enumeration-days' days ahead from now when=20 > exporting non-standard diary sexps. By default, it is 2 weeks.=20 > So, you would see the anniversary in icalendar if it were 2 weeks from= =20 > now. >=20 > You can increase `icalendar-export-sexp-enumeration-days' to get the=20 > anniversary occurrences exported up to that number of days ahead. The variable `icalendar-export-sexp-enumeration-days` is indeed set to 14. = However, even entries of the form=20 * Test 1 %%(org-anniversary 2023 07 22) Test1 * Test 2 %%(org-anniversary 2023 07 24) Test2 do not get exported today (2023 07 23). =20 > Also, `org-anniversary' does not support %d. AFAIK, it is only working= =20 > for built-in sexp types, which are handled specially. %d works perfectly in the agenda view. Marcus=20 --=-ls+Qev68aSMy0vd1fV5L Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

This is because Emacs diary only looks `icalendar-export-sexp-enumeration-days' days ahead from now when exporting non-standard diary sexps. By default, it is 2 weeks. So, you would see the anniversary in icalendar if it were 2 weeks from now.

You can increase `icalendar-export-sexp-enumeration-days' to get the anniversary occurrences exported up to that number of days ahead.

The variable icalendar-export-sexp-enumeration-days is inde= ed set to 14. However, even entries of the form

* Test 1
%%(org-anniversary 2023 07 22) Test1
* Test 2
%%(org-anniversary 2023 07 24) Test2

do not get exported today (2023 07 23).

Also, `org-anniversary' does not support %d. AFAIK, it is only working for built-in sexp types, which are handled specially.

%d works perfectly in the agenda view.

Marcus

--=-ls+Qev68aSMy0vd1fV5L--