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 qHbxNQ23WF/MUgAA0tVLHw (envelope-from ) for ; Wed, 09 Sep 2020 11:05:49 +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 2MTRMQ23WF/2CgAA1q6Kng (envelope-from ) for ; Wed, 09 Sep 2020 11:05:49 +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 3808B940654 for ; Wed, 9 Sep 2020 11:05:49 +0000 (UTC) Received: from localhost ([::1]:52882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFxvA-0006Jb-2E for larch@yhetil.org; Wed, 09 Sep 2020 07:05:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFxuc-0006I2-HY for emacs-orgmode@gnu.org; Wed, 09 Sep 2020 07:05:14 -0400 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:44227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFxua-0003Ql-Gz; Wed, 09 Sep 2020 07:05:14 -0400 Received: by mail-oi1-x230.google.com with SMTP id 185so1899358oie.11; Wed, 09 Sep 2020 04:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1bRgQ7k6lgvQ1mitDUVWLxl+IL/XIeT7xctyxxGvVAk=; b=P4MCIGAqWJGc4NF5WQqP7n3xxT2X1dnNE+SuqTdTB39UGEb1UzBV+CV24jaRusHbKM Jqm/k8erJhb3iU+7GWEZHKbj4vms870CmxEiuFu3BLvpIC/8IqHG0QbPQDKBw0xvNRvj 1OCzmhu8ekjQozc24rQRHIwMHZzRV8rybej6eUlEBLfWx4v8t8jVJd56gC8k3azp0U3v uWH28eViYobGEMb7gQllUka3pKY8whMp/xRSjXXzR/fco5bvoXSXp0heuz0xtyMx4xG7 MLQV4Cn/wwsqJGxQ6yDqI9/4CByayzEhtEytxRmgUmgATIhkapsTLUCFM67iITWpiBAM LsHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1bRgQ7k6lgvQ1mitDUVWLxl+IL/XIeT7xctyxxGvVAk=; b=HhAKUBWYoD7eMYYjmGT4OPCNMSwJJdz8wEqK1jTHLV+9PczANNNbtqGDYw7vvy/sAa Xyv7+A+CNpl8wg0tTJ+UxVeGZJJswfqrbF3CQqeCyxLgSrNZ8aMMkomTSFvfsTnm8Knk QFdQo9yrZW11C1rBoHpzrJGDFpWop6oo1tcweAAF4kxp6EFUBcj80uhuW+OKV/2wqPEr 88ZOiF0hya2qj8P52RtrgyUShDgwTvCE4maz/o62G8IhebFCXbiiHGH2zqIVdnk6PXBL Uskyz4yrgHlqqhPP5h7/MBmfloWVN597ikWKSv9GmEaNUHkdRHONGdrYqabJ28GV7WTb N/Ng== X-Gm-Message-State: AOAM531UxLoewQwB4NPCGocCwD++PiUTekdgYM4STRKh/P1G4Xyp4EFx XCm8Drv56synMZZABOR25g1ODaaaHYnh+gqHpR0D6xq5URs= X-Google-Smtp-Source: ABdhPJwNlg7zC5jbFw0mgRzNk0C4FUH/G4BulCf2lQ6hZgDqsoYC9rMfr4+tJFyo1GLrOkE6uzggh/+TcdDuUSipBFY= X-Received: by 2002:a05:6808:555:: with SMTP id i21mr229667oig.55.1599649510567; Wed, 09 Sep 2020 04:05:10 -0700 (PDT) MIME-Version: 1.0 References: <87lfho39r0.fsf@gnu.org> <87v9gse5ve.fsf@bzg.fr> <87h7s8xs2m.fsf@gnu.org> <87tuw7mkow.fsf@gnu.org> In-Reply-To: <87tuw7mkow.fsf@gnu.org> From: Adam Faryna Date: Wed, 9 Sep 2020 12:04:59 +0100 Message-ID: Subject: Re: [feature request] org-at-timestamp-p should accept multiple parameters To: Bastien Content-Type: multipart/alternative; boundary="000000000000d7b1bd05aedf6c7a" Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=adamfaryna@gmail.com; helo=mail-oi1-x230.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=P4MCIGAq; dmarc=pass (policy=none) header.from=gmail.com; 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: 0.79 X-TUID: Z5nNGPuHaItD --000000000000d7b1bd05aedf6c7a Content-Type: text/plain; charset="UTF-8" Thanks. I understand now. I think to generate a patch in this case it's too much hustle, for a minor benefit. -- Adam On Wed, 9 Sep 2020 at 09:13, Bastien wrote: > 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 > --000000000000d7b1bd05aedf6c7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks. I understand now.

I = think to generate a patch in this case it's too much hustle, for a mino= r benefit.

--
Adam

On Wed, 9 Se= p 2020 at 09:13, Bastien <bzg@gnu.org= > wrote:
Hi A= dam,

Adam Faryna <a= damfaryna@gmail.com> 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<= br> > get it by using (org-at-timestamp-p 'inactive) while pointing at t= he
> 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 i= t'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,

--
=C2=A0Bastien
--000000000000d7b1bd05aedf6c7a--