org-mode/lisp
Ilya Chernyshov c74c4ab18d
lisp/org-element.el: Add new timestamp property :range-type
The new property is needed to reduce ambiguity when interpreting the
parsed data.

* lisp/org-element.el (org-element-timestamp-interpreter): Preserve old
behavior when :range-type is `nil'.  Take into account :range-type
value when interpreting ranges.  When :range-type is `timerange',
return a timerange (<YYYY-mm-DD HH:MM-HH:MM>).  If :range-type is
`daterange' return a daterange (<...>--<...>).  When :range-type is
nil, return a daterange (as it was before).  When :range-type is
`daterange' or `timerange' and :type is `active'/`inactive', throw an
error.
(org-element-timestamp-parser): Add :range-type property.

* lisp/org.el (org-timestamp-split-range): Make sure that :range-type
is nil for a split timestamp.

* testing/lisp/test-org-element.el
(test-org-element/timestamp-interpreter): Add new tests.
(test-org-element/timestamp-parser): Add tests for :range-type
property.

* etc/ORG-NEWS (Major changes and additions to Org API): Add news about this property.

Link: https://list.orgmode.org/orgmode/87y1ot6dqz.fsf@gmail.com/
2023-07-12 11:12:46 +03:00
..
Makefile * lisp/Makefile: Remove references to org-contrib 2023-03-16 13:34:34 +01:00
ob-C.el lisp/ob-C.el: replace %f with %s to prevent unneeded rounding 2023-06-02 10:23:58 +03:00
ob-R.el * lisp/ob-R.el: Fix ESS compatibility 2023-04-17 20:20:58 +02:00
ob-awk.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-calc.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-clojure.el ob-clojure.el: Reword docstring for ob-clojure-eval-with-cider 2023-03-23 13:25:15 +01:00
ob-comint.el org-babel-comint-with-output: Fix edge case for partial prompts 2023-04-02 12:15:10 +02:00
ob-core.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
ob-css.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-ditaa.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-dot.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-emacs-lisp.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-eshell.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-eval.el org-babel-eval: Clarify the purpose of 4a751709b in code 2023-02-01 15:03:50 +03:00
ob-exp.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
ob-forth.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-fortran.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-gnuplot.el Update Ihor Radchenko's email address 2023-07-03 11:08:49 +03:00
ob-groovy.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-haskell.el Consistently allow null character in block and drawer bodies 2023-04-25 21:06:50 +02:00
ob-java.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-js.el Merge branch 'bugfix' 2023-04-17 13:12:22 +02:00
ob-julia.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-latex.el * lisp/ob-latex.el: Fix command injection vulnerability 2023-03-12 12:23:46 +01:00
ob-lilypond.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-lisp.el lisp/ob-lisp: fix `org-babel-execute:lisp' for use with Sly 2023-05-02 14:09:37 +02:00
ob-lob.el Use `org-element-type-p' 2023-07-01 14:35:35 +03:00
ob-lua.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-makefile.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-matlab.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-maxima.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-ocaml.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-octave.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-org.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-perl.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-plantuml.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-processing.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-python.el ob-python: Allow working with externally started sessions again 2023-03-31 09:11:42 -07:00
ob-ref.el org-element: New `org-element-*property*' functions 2023-07-01 14:35:43 +03:00
ob-ruby.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-sass.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-scheme.el org-babel-expand-body:scheme: define header arg vars using define 2023-04-25 14:25:30 +02:00
ob-screen.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-sed.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-shell.el ob-shell.el: Add async evaluation 2023-03-22 14:55:11 -04:00
ob-sql.el lisp/ob-sql.el: allow string in sql-connection-alist 2023-02-01 14:58:03 +03:00
ob-sqlite.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-table.el org-sbe: Allow quoting string values 2023-02-23 12:29:18 +03:00
ob-tangle.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
ob.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
oc-basic.el Use `org-element-type-p' 2023-07-01 14:35:35 +03:00
oc-biblatex.el Rename `org-export-get-parent' to `org-element-parent' 2023-07-01 14:35:41 +03:00
oc-bibtex.el Use `org-element-type-p' 2023-07-01 14:35:35 +03:00
oc-csl.el Use `org-element-type-p' 2023-07-01 14:35:35 +03:00
oc-natbib.el Use `org-element-type-p' 2023-07-01 14:35:35 +03:00
oc.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
ol-bbdb.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ol-bibtex.el Fix BibTeX spelled as Bibtex 2023-03-07 14:06:01 +01:00
ol-docview.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-doi.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-eshell.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-eww.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-gnus.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-info.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-irc.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-man.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-mhe.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-rmail.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-w3m.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol.el org-insert-link: Keep the link in `org-stored-links' if it was not inserted 2023-07-04 13:43:21 +03:00
org-agenda.el org-agenda-show-new-time: Fix when window is very narrow 2023-07-05 16:12:19 +03:00
org-archive.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-attach-git.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-attach.el org-element: New `org-element-*property*' functions 2023-07-01 14:35:43 +03:00
org-capture.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-clock.el org-find-open-clocks: Fix false positives 2023-07-01 14:36:26 +03:00
org-colview.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-compat.el org-compat.el: `org--flatten-tree' for Emacs-26 compatibility 2023-07-08 12:09:25 +03:00
org-crypt.el org-crypt-decrypt-entry: Apply initial visibility upon decryption 2023-05-15 15:35:56 +02:00
org-ctags.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-cycle.el Update Ihor Radchenko's email address 2023-07-03 11:08:49 +03:00
org-datetree.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-duration.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-element-ast.el Update Ihor Radchenko's email address 2023-07-03 11:08:49 +03:00
org-element.el lisp/org-element.el: Add new timestamp property :range-type 2023-07-12 11:12:46 +03:00
org-entities.el org-entities: Treat ¶ similarly to § 2023-04-13 09:02:58 +02:00
org-faces.el Define the face `org-agenda-calendar-daterange' 2023-01-21 11:27:38 +03:00
org-feed.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-fold-core.el Update Ihor Radchenko's email address 2023-07-03 11:08:49 +03:00
org-fold.el Update Ihor Radchenko's email address 2023-07-03 11:08:49 +03:00
org-footnote.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-goto.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-habit.el Allow syntax nodes to be supplied in place of POM in API functions 2023-07-01 14:36:04 +03:00
org-id.el Allow syntax nodes to be supplied in place of POM in API functions 2023-07-01 14:36:04 +03:00
org-indent.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-inlinetask.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-keys.el Use `org-element-type-p' 2023-07-01 14:35:35 +03:00
org-lint.el org-lint-export-option-keywords: Small refactoring 2023-07-01 14:36:28 +03:00
org-list.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-macro.el org-element: New `org-element-*property*' functions 2023-07-01 14:35:43 +03:00
org-macs.el org-src.el: Use native value of `indent-tabs-mode' for indentation 2023-07-07 11:58:43 +03:00
org-mobile.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-mouse.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-num.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-pcomplete.el org-element: New `org-element-*property*' functions 2023-07-01 14:35:43 +03:00
org-persist.el Update Ihor Radchenko's email address 2023-07-03 11:08:49 +03:00
org-plot.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
org-protocol.el org-compat.el: `org--flatten-tree' for Emacs-26 compatibility 2023-07-08 12:09:25 +03:00
org-refile.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-src.el org-compat.el: `org--flatten-tree' for Emacs-26 compatibility 2023-07-08 12:09:25 +03:00
org-table.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org-tempo.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-timer.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
org.el lisp/org-element.el: Add new timestamp property :range-type 2023-07-12 11:12:46 +03:00
ox-ascii.el org-element: New `org-element-*property*' functions 2023-07-01 14:35:43 +03:00
ox-beamer.el org-element-lineage: Allow TYPES to be a symbol 2023-07-01 14:35:43 +03:00
ox-html.el org-html-link: Fix relative links with :html-link-use-abs-url 2023-07-10 11:16:32 +03:00
ox-icalendar.el Use `org-element-type-p' 2023-07-01 14:35:35 +03:00
ox-koma-letter.el Prefer "timestamp" over "time-stamp" 2023-04-30 13:48:52 +02:00
ox-latex.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00
ox-man.el Rename `org-export-get-parent' to `org-element-parent' 2023-07-01 14:35:41 +03:00
ox-md.el ox.el: Rename `org-element-get-parent-element' and move to org-element 2023-07-01 14:35:42 +03:00
ox-odt.el org-element-lineage: Allow TYPES to be a symbol 2023-07-01 14:35:43 +03:00
ox-org.el org-element-lineage: Allow TYPES to be a symbol 2023-07-01 14:35:43 +03:00
ox-publish.el org-element-lineage: Allow TYPES to be a symbol 2023-07-01 14:35:43 +03:00
ox-texinfo.el org-element: New `org-element-*property*' functions 2023-07-01 14:35:43 +03:00
ox.el Prefer `forward-line' over `beginning-of-line' 2023-07-01 14:36:14 +03:00