From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cA0BDtqOWF9pUwAA0tVLHw (envelope-from ) for ; Wed, 09 Sep 2020 08:14:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SG/uCdqOWF9nEQAA1q6Kng (envelope-from ) for ; Wed, 09 Sep 2020 08:14:18 +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 9E4A29401D0 for ; Wed, 9 Sep 2020 08:14:17 +0000 (UTC) Received: from localhost ([::1]:59238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFvFA-0006le-9M for larch@yhetil.org; Wed, 09 Sep 2020 04:14:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFvEo-0006lV-Ao for emacs-orgmode@gnu.org; Wed, 09 Sep 2020 04:13:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57680) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFvEo-0003H1-25; Wed, 09 Sep 2020 04:13:54 -0400 Received: from [2a01:e35:2fe1:f780:c5e2:3782:b02e:7710] (port=45298 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kFvEn-0007aL-Nh; Wed, 09 Sep 2020 04:13:53 -0400 Received: by guerry (Postfix, from userid 1000) id 01DC71A60D39; Wed, 9 Sep 2020 10:13:51 +0200 (CEST) From: Bastien To: Adam Faryna Subject: Re: [feature request] org-at-timestamp-p should accept multiple parameters Organization: GNU References: <87lfho39r0.fsf@gnu.org> <87v9gse5ve.fsf@bzg.fr> <87h7s8xs2m.fsf@gnu.org> Date: Wed, 09 Sep 2020 10:13:51 +0200 In-Reply-To: (Adam Faryna's message of "Tue, 8 Sep 2020 16:57:10 +0100") Message-ID: <87tuw7mkow.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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.01 X-TUID: 2Bov0wjHrlFq Hi Adam, Adam Faryna writes: > Ok, maybe I misunderstood the purpose of this function. I wanted to > use it to check if the timestamp is active or inactive and I tried to > get it by using (org-at-timestamp-p 'inactive) while pointing at the > timestamp. But actually when I call it on any timestamp like > [2020-09-04 Fri], <2020-09-04 Fri> I always get nil. So either it's a > bug, or I miss something. (org-at-timestamp-p) returns t on an active timestamp. (org-at-timestamp-p 'inactive) returns t on any timestamp, including inactive ones. If you think the docstring could be enhanced, can you share a patch? See https://orgmode.org/worg/org-contribute.html on how to contribute. Thanks, -- Bastien