From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sMOiKrIF1WLkDAEAbAwnHQ (envelope-from ) for ; Mon, 18 Jul 2022 09:03:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kL2WKrIF1WJ6PgAA9RJhRA (envelope-from ) for ; Mon, 18 Jul 2022 09:03:14 +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 74EFF131DD for ; Mon, 18 Jul 2022 09:03:14 +0200 (CEST) Received: from localhost ([::1]:48500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDKmf-0000fn-Ka for larch@yhetil.org; Mon, 18 Jul 2022 03:03:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDKl0-0000e2-8x for emacs-orgmode@gnu.org; Mon, 18 Jul 2022 03:01:33 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:45663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDKkv-0003ny-3z for emacs-orgmode@gnu.org; Mon, 18 Jul 2022 03:01:29 -0400 Received: by mail-pl1-x634.google.com with SMTP id w7so8222819ply.12 for ; Mon, 18 Jul 2022 00:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=Igta23GlBdJvh3CS/dwaUusGekxrgnA6cl531IR+gkE=; b=ZVIqmyCFOU7kN0rOLMnkPGTCgL5YPbe/XMdDRR6VJrhpPhLrIW5Kumr+eJqPKO6rd+ 5foy/ryL0Wp4L0N5nnVw2KaMWO9wLozQZhHwVPxFwcR30WCsEY9scOIsjIJYCB2JFifO BeiI5Q6FvkSbMn6Pi2XInmnyuOC/uR5/0muzIlqYuqI0fkL4BcceAiOWDkDcCmlT2PcD DpFBwoQuceKLsclIOBdRP3/9u0tI7h5hAC6JmpT7oFCP1SBzGcEI8GOp8pJptsqDT1Te AVu8tdD/eylgzRipQuo67nfw/GfwWvzXKnUBzTiWWquWSlmNHS4TVFg1Ah6WIW3VSwZA LFOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=Igta23GlBdJvh3CS/dwaUusGekxrgnA6cl531IR+gkE=; b=ANwOit/P7Ei5VPfg5KNji0e+r4y5oXVrUY/M6cxXGk09ZzGGqcnbMEtUocYe0B7k5l AluYLy5ex2Uj7IqrKfkFCrSo5DOHjpfVetFSkapHCg65nBULEx/o8cLDeE1s+9mKT5eR 7cYjq1Uzi53tJHmMiK0WF5WoS0DR+YoJS2ZrZ4OSzV5z9WRix7AaTfPhdgHt+rusRJyY Ez5a9tbhZBCk+3y8OGRGHs/06bsm4JhDC5JJ1RLLkdNebIelBpLj7YBNlvoSxR8PeYvb X+UIospu7u7hCJzC6u/AMwp6rYG1/yeeGsMnOznWfZU1pKph4Hq1HxkJgmpmSA2kr3f3 gf0Q== X-Gm-Message-State: AJIora/+/T/UaBCyiuEsKHLD7JQJv/GZg3u2VDMWJF5FsLD7h/0SsKpN SBzg82wjHXfvL9B4qTvMpAk= X-Google-Smtp-Source: AGRyM1s/n44rCG0ycG/MpQEQI8rR0uB4M7CXWnZvPwJQOzauEegIhU6RGsFmL4sk8iDXiEv5uetCWQ== X-Received: by 2002:a17:90b:388c:b0:1f0:29f7:7d15 with SMTP id mu12-20020a17090b388c00b001f029f77d15mr36338341pjb.181.1658127683394; Mon, 18 Jul 2022 00:01:23 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id ik5-20020a170902ab0500b00168b113f222sm8521417plb.173.2022.07.18.00.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 00:01:22 -0700 (PDT) From: Ihor Radchenko To: Ypo Cc: emacs-orgmode@gnu.org Subject: Re: Could an "org-anniversary" be a PROPERTY? In-Reply-To: References: <87wncbi9ky.fsf@localhost> Date: Mon, 18 Jul 2022 15:02:28 +0800 Message-ID: <87lesqhpiz.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=yantar92@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658127794; 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=Igta23GlBdJvh3CS/dwaUusGekxrgnA6cl531IR+gkE=; b=eu+jjcUazQolSYkE7XIXCTwlwx+AZinSHZV+JKtdqAeFNrfRiDtDnLjBjdUfnADcLRdCrb EZ4xC9vlucTtQVpYXpAQ8Cz5OHk7oXglicsRK8bVN57JOvKPLuHeqm8sQn5sLYTbCT0+/G I7oYqWJVMQmlDXZXKpd4dJ05i16tfYiQDgkkYQrNF6IhRU1EZ1DfdLZKwIq6TCvkn0ihXM GUDYxMtpfZd13uPAaqzK1lOQqWagjSKMOCwCfgivGxImHBwiX6Tz/3iaLDiov1d3xH6M6v pBwuzBZLoWz2TFZlaI6eyIMkMZKNe1IiUsca37xRZWk6DNbksb7A2GsWdMGnzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658127794; a=rsa-sha256; cv=none; b=pdutfzaqv/X+p3v4F2lYkdLQNrII0z7ctiRiZuJbzF8joAaQem8HxyL2qvkr3r2pvfLtMk sGasxb42J1D0HywAeO4LILH2dSLsrLiKN1lpbIkTE463EbB7WEcTlw7QWEmq16MihRGCHW gBjBE0z2Fb8MgCz788h2YibaCdyGxqZt9z61enXxqag9z5Q18rwJRNJuqYNtyAIR7+HD2T KuJbpk4SPTqVNewvR+Zk+OzCp3jVuzhDBzn3cQKqJjk5WsQPOkqq8982RVFrAsH6r/mGxy Wt2yqI2wrwnVYBI41vE/C9F0HJFspfpq+qj3cT2Xw8sXB67vDMDiqyX7vSV5sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZVIqmyCF; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZVIqmyCF; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 74EFF131DD X-Spam-Score: -3.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: QH9CTfnWaPrP Ypo writes: > It works! Thanks, Ihor. > > How could I've known? Should I've known? The manual on diary integration (11.3.1 Weekly/daily agenda) says: If you are using the diary only for expression entries and holidays, it is faster to not use the above setting, but instead to copy or even move the entries into an Org file. Org mode evaluates diary-style expression entries, and does it faster because there is no overhead for first creating the diary display. Note that the expression entries must ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ start at the left margin, no whitespace is allowed before them, as seen ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in the following segment of an Org file:(2) * Holidays :PROPERTIES: :CATEGORY: Holiday :END: %%(org-calendar-holiday) ; special function for holiday names * Birthdays :PROPERTIES: :CATEGORY: Ann :END: %%(org-anniversary 1956 5 14) Arthur Dent is %d years old %%(org-anniversary 1869 10 2) Mahatma Gandhi would be %d years old I proposed something that is not a diary item, but that also allow diary-sexp syntax: Diary-style expression entries (8.1 Timestamps): Diary-style expression entries For more complex date specifications, Org mode supports using the special expression diary entries implemented in the Emacs Calendar package(2). For example, with optional time: * 22:00-23:00 The nerd meeting on every 2nd Thursday of the month <%%(diary-float t 4 2)> Best, Ihor