Skip to content

Use org-entry-get instead of manual parsing - #46

Open
PatrickNorton wants to merge 1 commit into
spegoraro:masterfrom
PatrickNorton:use-org-entry
Open

PatrickNorton wants to merge 1 commit into
spegoraro:masterfrom
PatrickNorton:use-org-entry

Conversation

@PatrickNorton

Copy link
Copy Markdown

Based on my thoughts in #43 (comment): should solve #42 and #43.

I think it's possible to extend this pretty easily to cover #27 (using org-element-parse-buffer and org-element-map) but I figure that's better for a separate issue.

Breaking changes:

  • org-alert--check-time takes a decoded time instead of a string
  • org-alert-match-string and org-alert-time-match-string are obsolete and have been removed.
  • org-alert--parse-entry is obsolete and has been removed.

(Hopefully) non-breaking changes:

  • Adds org-alert--maybe-alert
  • org-alert--dispatch now uses org-entry-get to get SCHEDULED: and DEADLINE: tags
  • org-alert--dispatch now uses org-parse-time-string to get timestamp

Breaking changes:
- org-alert--check-time takes a decoded time instead of a string
- org-alert-match-string and org-alert-time-match-string are obsolete
  and have been removed.
- org-alert--parse-entry is obsolete and has been removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant