[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 01069d1 02/13: Fixed failing effort test
From: |
Ian Dunn |
Subject: |
[elpa] master 01069d1 02/13: Fixed failing effort test |
Date: |
Sun, 4 Feb 2018 12:32:33 -0500 (EST) |
branch: master
commit 01069d11626a72b64ebbe5b58710b009aaca15b3
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 updated (edbdf4e -> a9eb761), Ian Dunn, 2018/02/04
- [elpa] master 01069d1 02/13: Fixed failing effort test,
Ian Dunn <=
- [elpa] master c7fc9a4 01/13: Updated copyright, Ian Dunn, 2018/02/04
- [elpa] master 13c02a6 06/13: Added dictionary printing, Ian Dunn, 2018/02/04
- [elpa] master a9d3d12 07/13: Added support for choosing which side of thing-at-point to consider for exclusion, Ian Dunn, 2018/02/04
- [elpa] master 56eeaff 04/13: Fixed up Changelog in documentation, Ian Dunn, 2018/02/04
- [elpa] master b73fff8 09/13: Added paced-repopulate-current-dictionary-async, Ian Dunn, 2018/02/04
- [elpa] master 1171a76 08/13: Added support for excluding words past a certain character limit, Ian Dunn, 2018/02/04
- [elpa] master bc5d7cd 10/13: Silenced byte-compiler, Ian Dunn, 2018/02/04
- [elpa] master d57675f 03/13: Added new forms for set-property! and fixed up build system, Ian Dunn, 2018/02/04
- [elpa] master 35acd8c 05/13: Cleaned up Changelog some more, Ian Dunn, 2018/02/04
- [elpa] master a9eb761 13/13: Merge commit '35acd8c2f9710e54ec3f433ae4af40cfff635295', Ian Dunn, 2018/02/04