[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8e20fb9 098/135: Fixed failing effort test
From: |
Ian Dunn |
Subject: |
[elpa] master 8e20fb9 098/135: Fixed failing effort test |
Date: |
Mon, 17 Feb 2020 10:53:00 -0500 (EST) |
branch: master
commit 8e20fb9287124fc9cdea6cb6caaace39c75b6d1e
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Fixed failing effort test
* org-edna.el (org-edna-set-effort): New defun for compatibility
(org-edna-action/set-effort!): Use it.
---
org-edna.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/org-edna.el b/org-edna.el
index 9e19f40..9925af3 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -1607,6 +1607,13 @@ Form 4: Set the target's priority to the character P."
(string-to-char priority-action)
priority-action)))
+(defun org-edna-set-effort (increment value)
+ "Compatibility function for `org-set-effort'."
+ ;; The signature of `org-set-effort' changed in 9.1.6
+ (if (version< org-version "9.1.6")
+ (org-set-effort value increment)
+ (org-set-effort increment value)))
+
(defun org-edna-action/set-effort! (_last-entry value)
"Action to set the effort of a target heading.
@@ -1619,8 +1626,8 @@ the raw value for the effort.
For form 2, increment the effort to the next allowed value."
(if (eq value 'increment)
- (org-set-effort nil value)
- (org-set-effort value nil)))
+ (org-edna-set-effort value nil)
+ (org-edna-set-effort nil value)))
(defun org-edna-action/archive! (_last-entry)
"Action to archive a target heading.
- [elpa] master 0b0cb67 063/135: Use org source blocks instead of example blocks in documentation, (continued)
- [elpa] master 0b0cb67 063/135: Use org source blocks instead of example blocks in documentation, Ian Dunn, 2020/02/17
- [elpa] master e6f88e7 069/135: Silenced byte-compiler, Ian Dunn, 2020/02/17
- [elpa] master ef302af 070/135: Added more docstrings, Ian Dunn, 2020/02/17
- [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 <=
- [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, 2020/02/17
- [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