[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7d30f60 088/135: Catch non-existent timestamps in planning
From: |
Ian Dunn |
Subject: |
[elpa] master 7d30f60 088/135: Catch non-existent timestamps in planning action |
Date: |
Mon, 17 Feb 2020 10:52:58 -0500 (EST) |
branch: master
commit 7d30f60877802876f71e6da817e11705d1d39151
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Catch non-existent timestamps in planning action
* org-edna.el (org-edna--handle-planning): Throw an error if the source
timestamp doesn't exist.
---
org-edna.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/org-edna.el b/org-edna.el
index 01f13c3..f14bcc7 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -1195,6 +1195,9 @@ forward) or the last day of MONTH (backward)."
(pcase-let* ((`(,n ,what-string ,def) (org-edna--read-date-get-relative
arg this-time current))
(ts (if def current-ts this-ts))
(what (cdr (assoc-string what-string type-map))))
+ ;; Ensure that the source timestamp exists
+ (unless ts
+ (error "Tried to increment a non-existent timestamp"))
(org--deadline-or-schedule nil type (org-edna--mod-timestamp ts n
what))))
(t
;; For everything else, assume `org-read-date-analyze' can handle it
- [elpa] master 00abd93 073/135: Fixed tests copyright string, (continued)
- [elpa] master 00abd93 073/135: Fixed tests copyright string, Ian Dunn, 2020/02/17
- [elpa] master c442e77 076/135: Only require subr-x during compilation, Ian Dunn, 2020/02/17
- [elpa] master 311e980 065/135: Compile targets before running tests, Ian Dunn, 2020/02/17
- [elpa] master 9d26430 072/135: Fixed copyright strings., Ian Dunn, 2020/02/17
- [elpa] master f83f47b 074/135: Updated documentation for ELPA release, Ian Dunn, 2020/02/17
- [elpa] master 88b59b3 089/135: Added section to documentation for changes, Ian Dunn, 2020/02/17
- [elpa] master 7e6913b 091/135: Fixed "Setting the Properties" custom_id and title, Ian Dunn, 2020/02/17
- [elpa] master 8e20fb9 098/135: Fixed failing effort test, Ian Dunn, 2020/02/17
- [elpa] master 3c6b66c 075/135: Added next-sibling-wrap finder, Ian Dunn, 2020/02/17
- [elpa] master 0503710 080/135: Bumped version to beta1, Ian Dunn, 2020/02/17
- [elpa] master 7d30f60 088/135: Catch non-existent timestamps in planning action,
Ian Dunn <=
- [elpa] master d0f7e21 085/135: Added two new forms for setting planning information, Ian Dunn, 2020/02/17
- [elpa] master f45f911 115/135: Mention consider in opening of Consideration section, Ian Dunn, 2020/02/17
- [elpa] master c4d1298 099/135: Added new forms for set-property! and fixed up build system, Ian Dunn, 2020/02/17
- [elpa] master 5cacf20 078/135: Updated documentation, Ian Dunn, 2020/02/17
- [elpa] master bad787d 128/135: Bumped version, Ian Dunn, 2020/02/17
- [elpa] master 6869846 130/135: Merged fix., Ian Dunn, 2020/02/17
- [elpa] master c50f484 106/135: Implemented finder cache, Ian Dunn, 2020/02/17
- [elpa] master 4142fb8 108/135: Updated tests for new form expansion, Ian Dunn, 2020/02/17
- [elpa] master 2354cde 118/135: Fixed up description of set-effort!., Ian Dunn, 2020/02/17
- [elpa] master 97b6600 119/135: Additional tests and minor cleanup, Ian Dunn, 2020/02/17