From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0BTuE+y5bGINagEAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 06:24:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uAhEFOy5bGKeXgEAauVa8A (envelope-from ) for ; Sat, 30 Apr 2022 06:24:12 +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 F12732217C for ; Sat, 30 Apr 2022 06:24:11 +0200 (CEST) Received: from localhost ([::1]:55638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkeeQ-0004xa-Ov for larch@yhetil.org; Sat, 30 Apr 2022 00:24:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkedY-0004xM-LE for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:23:16 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:38436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkedX-0006m8-2n for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:23:16 -0400 Received: by mail-pj1-x102f.google.com with SMTP id cx11-20020a17090afd8b00b001d9fe5965b3so10164335pjb.3 for ; Fri, 29 Apr 2022 21:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=7nD7hz2Zjs/1pikmNnam5NMt8zZtp27LCb5wwDHnCZc=; b=KACeyqk/TrHNWhVFKpqlQ747fSofsj8/0STv2Ad3BGrMFh8tltrHOyBSkqDgoJNr4z r4+tuwTUbSy8zlj/X3kFQTBRnTaFfEv4Y8piYA2JOC7l3uFclPIAdykoqE8EsJFtAIrw ecS4gy/Cq0cHuNNbyuB9G18ApUOb9aI/qKoWUg5hSK2RchWvegiREZ5JtQ00dvortBxd 7xUk+YgPgwgfut7YnDMlwRumaEymh7LP5rkE9P140BvtaxcDelhkkQ5BXdk/2Bk2ix11 sMWlrY26njpQoTKE/EP3SnWZ3w6EIxtwQbEB++W7sDFpIPA1PJhSqotAFLGtjtL5kiYK VwfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=7nD7hz2Zjs/1pikmNnam5NMt8zZtp27LCb5wwDHnCZc=; b=xA4LmNSDqPI6UhitMlkJrf11g4DNmBNLqOjqhwgIt8hP53csnBbl25EgeCGbf+KHzF 86x43BXmBM+6n7/06uQZ8kcBYReDnH1XhTMmVBMPHxJ5UVzsifqViWTCN9DkfwksMlSg FffPDJu8XHX3rqwMU16CSsYywJua4Zs7kEKjHq0XBkM20bebnrREgsa/+I7YJd0Pi0r1 N0swhJaRO1kVcU1PL91RFAYTGtCJyWBrPYjjya4kgKWm5duL27kvbF9Z38HvMscDnY7D GmDGS6zuUiL6zd7jdsxCKKuYOOlqTEZLDhSLV40jJJ7xtcF+MhpQx14qEaXJ4qzsI5jD sZRg== X-Gm-Message-State: AOAM532sbmUfDSmqaD400xM+FCDjz5DqjoFHpF+biDMF+f0ifdQAgKdq MxH9GaazTY08F4tTnrMKBwSbU7d6i6afmA== X-Google-Smtp-Source: ABdhPJwbvoL39dortB8egGLI5P2cc7PaHRj+XXyMMn9Up0+buqul2CWq9WaYs/k3pg7Fj12k938KtA== X-Received: by 2002:a17:902:ce85:b0:15d:1f31:8e75 with SMTP id f5-20020a170902ce8500b0015d1f318e75mr2385887plg.41.1651292593376; Fri, 29 Apr 2022 21:23:13 -0700 (PDT) Received: from localhost ([45.83.130.130]) by smtp.gmail.com with ESMTPSA id r4-20020a17090a438400b001d95c09f877sm11583418pjg.35.2022.04.29.21.23.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 21:23:12 -0700 (PDT) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [BUG] <2022-04-11 Mon 17:1-19:10> is wrongly parsed as a valid timestamp [9.5.3 (release_9.5.3-461-ga3dac4 @ /home/yantar92/.emacs.d/straight/build/org/)] Date: Sat, 30 Apr 2022 12:24:00 +0800 Message-ID: <87a6c3urkv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.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=1651292652; 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=7nD7hz2Zjs/1pikmNnam5NMt8zZtp27LCb5wwDHnCZc=; b=YdKcyA82l7nDOeTT0QLDoUIHrw+tjb6eIuev+B/m/oyd1Q8I26yg5X3BxHOAC/tqVAN1Jx eGpbtApixawCr/rkvaY4T91GfWtC3hHt43ph4Tq3zk0hwmBu+HV/wYGnPaEN+0wLZG07Z0 rXRylZb2F88CRWsdIQiose84J7NGkgnUvhDI5JQ1Aw2sJzSxvpanU5zeZZ+Wd+WiaJk1G3 WlHndljQlb8rkVnUhlop1cs50+BJLQHD6mIHyfi0uh/5pXpUztmW2g5RSOEseL8x17S/Fp PSOfD6yr5PB+FZUW9jf7lGT2VO8F5fsmg/EGqIHWwcnvT1wmiOjvDpRZTDpKIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651292652; a=rsa-sha256; cv=none; b=gz54Fzm9K4XM28AtbZMH+C0sS15iBHYjzzKb10rGevx2IySsJuykec4SRT5cr06Xk6xQKR KlbkYntZCiaJFii2Rd/SO7Qdo+M2FjYyp2fdjN8LYjBjEG2NzqeNy+DLToj+wzfSgqZgMz puZ5CBAo+4kxBDuS3PYgDwesi49/qNu3a7pzpNDLwZWcOpYF/9+SwHxSzVVB2uJl9FkTtn VC7vfqq1AHjQQKP1WwCoUWRinl4FBynM8uQSLztZUzLrTmJkCJ3LjqrQH9yVKkxPFwwHk0 +isr6mwR8TUU3cm7OLYGN2lXI5VKp4UJ9Ge1EIc71xDvonOimtosYSvysUldRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="KACeyqk/"; 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.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="KACeyqk/"; 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: F12732217C X-Spam-Score: -3.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: hGR/bGLpl4ff Hi, Consider the following timestamp with a typo in starting minute: <2022-04-11 Mon 17:1-19:10> Running org-element-context yields a timestamp object with unexpected properties: (timestamp (:type active :raw-value "<2022-04-11 Mon 17:1-19:10>" :year-start 2022 :month-start 4 :day-start 11 :hour-start nil :minute-start nil :year-end 2022 :month-end 4 :day-end 11 :hour-end nil :minute-end nil :begin 1916 :end 1943 :post-blank 0)) Note that hour/minute values are nil. Expected: The example timestamp is not parsed as a valid timestamp, but rather considered a paragraph. Best, Ihor Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2022-04-24 Package: Org mode version 9.5.3 (release_9.5.3-461-ga3dac4 @ /home/yantar92/.emacs.d/straight/build/org/)