emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
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	[thread overview]
Message-ID: <87a6c3urkv.fsf@localhost> (raw)

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/)


             reply	other threads:[~2022-04-30  4:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-30  4:24 Ihor Radchenko [this message]
2023-05-13 10:44 ` [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/)] Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6c3urkv.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).