From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MNGQHR2o5WRLLwEASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 08:33:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WEKKHB2o5WRNvAAAG6o9tA (envelope-from ) for ; Wed, 23 Aug 2023 08:33:01 +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 456525B76A for ; Wed, 23 Aug 2023 08:33:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pDBoBl1J; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692772381; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Dd25w8Bpnke9+qC5/Rmbjvt5ZzX0R+qw9jQxV+o7DHg=; b=aMNIWa2uMDgBPRA8won+d6qJH3DztxHhBWH2XWsptu5V60yEbniHE+09lcHOISQ6dr9L6j 4Ar5KxcV4uBCy3f9rUcPsYBTkGAxkrvKauQMMCETRrnI7q6ms46SgsNWLAQAceCBAR9leN ULrkwzyF1UltJV91cXaMh5FaUDNKvkNtTsXuZcDU94teruuFlQmlr0BCtxQum5LFfqnyo/ f8GB6hAUxwhAcHuidfEfDHBRMQA6iRBJ8YspmNBtnyPHqsLKlysHSKn8xdBiWK3vqOyede 5AeYEtlrSjgZc/YTxjSTTxfQBoa/2IVJWnGxU7dQUaG8bBYCpTjVyRxuH0gToA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692772381; a=rsa-sha256; cv=none; b=b/Kv0u0qQPbx3RxPOQSofOac2UhQG0i2KxOncj5O6/vtOkDOXPml3FAO8BAadi62QRe49b 9OYvo1YYqt3SKJD2gF6U1Q4x8am5Kp83Q2eVI8JyxRihHPkGtpf4WHlE8mlPvE8bj7HfHf 1nFRvlW3/uU3Gu6cikz91JA+VNsFbaGVCUvkzTJfb21hAXH3a/wKiz8DPowI2sYgl88LW/ cm/eGuDLP06vUFjvR5Ek4RXx+PZ41NLVEwAY50B1ffYJZcFYQg7bYMReXDE1ZshTRK14pg PkHikEbCnxqeNFohJMch/TT3B9hrtcc181JNaIwiPo/E8syJaZHwRgBEM/tIWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pDBoBl1J; 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=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYhPA-0006p4-U5; Wed, 23 Aug 2023 02:31:49 -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 1qYhP9-0006ow-Gc for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 02:31:47 -0400 Received: from mail-vk1-xa2c.google.com ([2607:f8b0:4864:20::a2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYhP7-0006Ef-H3 for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 02:31:47 -0400 Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-48d0c7bfc49so2120644e0c.0 for ; Tue, 22 Aug 2023 23:31:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692772304; x=1693377104; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Dd25w8Bpnke9+qC5/Rmbjvt5ZzX0R+qw9jQxV+o7DHg=; b=pDBoBl1JDbl/bFGUbIhDOvzEyvZtBnxiGmucOBuBWO81bS/KtOkWI7u/uKLap05wlA JP6xJm8BDTo/sUjAwFutxcxtmImyw8V+Z3rcJjWS+HC4P021kbTk8XT4b9pDPHg2fWl7 Lrb/uDbV+yciWWnK0W1d6gGOsO2XTwlVXb9IMZxCoHLGdwJFRqzpJjpqUl/qJqa9jaHh mbqxK3aL7DUtD3Tg+xWdrTacZ1hoTGUFLVqKdu9otRb7FBnmWu+c2gt/b3oyyOoXI9Rc b/EG+SFfq3EF89GXlImnwNsfYDV6MM3mxtVESQmXf5cmiummAxHtoNjD1n4dn98BOf1X xRFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692772304; x=1693377104; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Dd25w8Bpnke9+qC5/Rmbjvt5ZzX0R+qw9jQxV+o7DHg=; b=LAmGgdionCGtaCSVWijfsdfiQmzS2eeLJLJuvhiqEFyl0UnJoqVq8oo646xsletMgy B/VmtjDGJ5C/vNU+chOauJURumPokSUk9b/z3YZE+il1HOTFlV8v4/0JmDB3WAeM9dG4 60DCfomvFV3AHBiD64KK9Eq6R881nU0Gm8nYz++PWnCD44xGwjqmfw5UQo28z0VOGdz/ WteUeQxGCePN6IUjCSczruNODNfhc01khkBY4Otl+mSkgpWXR2U8PZ5009LyqqrB+yrX 2NxhxmNMHAmPE2m3ID6lG+JuInc36cruIdkOvEjvnegfj6FKaIrSOUFVsHq8jQMvZdMa cH8A== X-Gm-Message-State: AOJu0YwjoCUt5vgROCsnSOTQdAHHlSxvtZN02PlbZZ3QRjoh+cHVaJQB 6fs7vW28wj8qPySAjC7zQtEFzAud1J8vmJEr+8cy8yt7Y4E= X-Google-Smtp-Source: AGHT+IEOwk3tHqHe2x3QasESVleyF49GOEb9fsPLPJFlJ0XEHbdFxyaS9iey4erQ+l1g6CzZcWOLfmmSY6cxMtcrOZ0= X-Received: by 2002:a1f:c646:0:b0:48d:5be:2868 with SMTP id w67-20020a1fc646000000b0048d05be2868mr5802519vkf.0.1692772303951; Tue, 22 Aug 2023 23:31:43 -0700 (PDT) MIME-Version: 1.0 From: Liu Hui Date: Wed, 23 Aug 2023 14:31:32 +0800 Message-ID: Subject: [PATCH] Fix docstring of `org-at-timestamp-p' To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="000000000000dcf26406039143ad" Received-SPF: pass client-ip=2607:f8b0:4864:20::a2c; envelope-from=liuhui1610@gmail.com; helo=mail-vk1-xa2c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, 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 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-Migadu-Spam-Score: -8.48 X-Spam-Score: -8.48 X-Migadu-Queue-Id: 456525B76A X-Migadu-Scanner: mx1.migadu.com X-TUID: 4ebu5HYMuveR --000000000000dcf26406039143ad Content-Type: text/plain; charset="UTF-8" Hi, I find that the doc string of `org-at-timestamp-p' about match groups is not consistent with the behavior. The doc string says When matching, the match groups are the following: group 1: year, if any group 2: month, if any group 3: day number, if any group 4: day name, if any group 5: hours, if any group 6: minutes, if any but for timestamps like <2023-08-23 Wed>, (when (org-at-timestamp-p) (match-string 2)) will return the year 2023 instead of the month. This patch corrects the group numbers. --000000000000dcf26406039143ad Content-Type: text/x-patch; charset="US-ASCII"; name="0001-lisp-org.el-org-at-timestamp-p-fix-doc-string.patch" Content-Disposition: attachment; filename="0001-lisp-org.el-org-at-timestamp-p-fix-doc-string.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_llncvny80 RnJvbSBhM2MzMWU0ZjhmNDAyMDJmY2VmNjFmYzdjNGIxNmFjYWYwMDZlMjRmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaXUgSHVpIDxsaXVodWkxNjEwQGdtYWlsLmNvbT4KRGF0ZTog V2VkLCAyMyBBdWcgMjAyMyAxNDoyNzoyMSArMDgwMApTdWJqZWN0OiBbUEFUQ0hdICogbGlzcC9v cmcuZWwgKG9yZy1hdC10aW1lc3RhbXAtcCk6IGZpeCBkb2Mgc3RyaW5nCgotLS0KIGxpc3Avb3Jn LmVsIHwgMTIgKysrKysrLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgNiBpbnNlcnRpb25zKCspLCA2 IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIvbGlzcC9vcmcuZWwKaW5k ZXggM2Q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