From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aGAeD8wHrl/bPAAA0tVLHw (envelope-from ) for ; Fri, 13 Nov 2020 04:13:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cC3kCswHrl+ZIgAAB5/wlQ (envelope-from ) for ; Fri, 13 Nov 2020 04:13:00 +0000 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 696BA94006E for ; Fri, 13 Nov 2020 04:12:59 +0000 (UTC) Received: from localhost ([::1]:60892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdQSH-0005W3-Q6 for larch@yhetil.org; Thu, 12 Nov 2020 23:12:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdQRr-0005Vf-Ll for emacs-orgmode@gnu.org; Thu, 12 Nov 2020 23:12:32 -0500 Received: from pb-smtp21.pobox.com ([173.228.157.53]:60717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdQRo-0007rH-60 for emacs-orgmode@gnu.org; Thu, 12 Nov 2020 23:12:31 -0500 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 39AF9FE1E2; Thu, 12 Nov 2020 23:12:25 -0500 (EST) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=l+oY2fzehxHPqNi5wQfHovFZgyE=; b=o2r4Em hhxudU06NZ5PR/bkSFlr1LtD+9xpnpU74/zWLhKUG5SWBEQX0zfs6LUhpX//9giv afReTFgWNr9+C9XF3L7TokSeRAB/XleHcBgjY1NbI8ZVJJIbUflrdxMX4tEiO6/z a0AlkYSMVJZ1vMmgoY5mIbCjxA6OdLgQtjSAs= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 32D03FE1E1; Thu, 12 Nov 2020 23:12:25 -0500 (EST) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=S+YuPMhUGTJK3bEe1LYautS1wwgWKGvNBnbkb/TBoF0=; b=B+qKCD8AvbanLe+zXqdh3/Yr81g1dvhKlTKGhN3ENEmwJz9tTSylpsj2aF4N4LOY8VVQHkM5q5YiL9Af+eIUA0Woy2EhbYgg0z32NCeC6PbJeS/WJL5gQcoobQ8tm/3jRZ+uZQtSyo6yRuT554wnYDJ7QaGOltlb6VmXWE0sGLs= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id AFE77FE1E0; Thu, 12 Nov 2020 23:12:22 -0500 (EST) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Michael Heerdegen Subject: Re: org-agenda-get-timestamps and properties In-Reply-To: <87eel1axqc.fsf@web.de> References: <87eel1axqc.fsf@web.de> Date: Thu, 12 Nov 2020 23:12:21 -0500 Message-ID: <87a6vl7v4q.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 6E0051B8-2566-11EB-91C7-D609E328BF65-24757444!pb-smtp21.pobox.com Received-SPF: pass client-ip=173.228.157.53; envelope-from=kyle@kyleam.com; helo=pb-smtp21.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/12 22:46:37 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=o2r4Em h; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=B+qKCD8A; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: iCWc/HunVDX9 Michael Heerdegen writes: > When debugging, I found that `org-agenda-get-timestamps' does, depending > on the position of the SCHEDULED spec, do return a timestamp when an > entry is formatted like this: > > ** APPT 10:40 Xyz > :PROPERTIES: > :ID: 1d313f9a-3044-4c23-9278-422646ec9063 > :END: > SCHEDULED: <2020-11-08 So +1d> To be valid, the SCHEDULED spec should be immediately following the headline. So this is just a timestamp... > but not when formatted like this: > > ** APPT 10:40 Xyz > SCHEDULED: <2020-11-08 So +1d> > :PROPERTIES: > :ID: 1d313f9a-3044-4c23-9278-422646ec9063 > :END: > > although the latter form is, AFAICT, recommended, and at least it's what > I get when creating ids automatically with (org-id-get-create). ...while this is a valid scheduled heading. > No timestamp, and my appointments don't work (bad). > > Has anybody any insight into this matter? I haven't looked too closely, but at first glance org-agenda-get-timestamps not detecting the second entry seems expected. org-agenda-get-timestamps has a comment that says "[s]kip date ranges, scheduled and deadlines, which are handled specially". Still without looking closely, I'd guess that the "handled specially" is referring to org-agenda-get-scheduled and org-agenda-get-deadlines.