[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 99939aa 048/135: Handle all errors in Edna forms
From: |
Ian Dunn |
Subject: |
[elpa] master 99939aa 048/135: Handle all errors in Edna forms |
Date: |
Mon, 17 Feb 2020 10:52:51 -0500 (EST) |
branch: master
commit 99939aae2b6b8211a876c01e958152801f4cc510
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
Handle all errors in Edna forms
* org-edna.el (org-edna-run): Catch and report all errors.
(org-edna-finder/match): Don't convert arguments.
---
org-edna.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/org-edna.el b/org-edna.el
index 370b50a..89cda05 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -197,8 +197,13 @@ Currently, the following are handled:
(member to (cons 'done org-done-keywords)))
(condition-case err
,@body
- (invalid-syntax-error
- (org-edna--print-syntax-error (cdr err))))
+ (error
+ (if (eq (car err) 'invalid-syntax-error)
+ (org-edna--print-syntax-error (cdr err))
+ (message "Edna Error: %s" (error-message-string err)))
+ (setq org-block-entry-blocking (org-get-heading))
+ ;; Block
+ nil))
;; Return t for the blocker to let the calling function know that there
;; is no block here.
t)))
@@ -239,8 +244,7 @@ SCOPE and SKIP are their counterparts in `org-map-entries',
but
as strings.
SCOPE defaults to \"agenda\", and SKIP defaults to nil."
- (setq scope (if scope (intern scope) 'agenda))
- (when skip (setq skip (intern skip)))
+ (setq scope (or scope 'agenda)
(org-map-entries
;; Find all entries in the agenda files that match the given tag.
(lambda nil (point-marker))
- [elpa] master 7379c4f 043/135: Added copyright date to source files, (continued)
- [elpa] master 7379c4f 043/135: Added copyright date to source files, Ian Dunn, 2020/02/17
- [elpa] master 8a21978 042/135: Fixed copyright notices, Ian Dunn, 2020/02/17
- [elpa] master 11aaa52 053/135: Added Savannah project link to documentation, Ian Dunn, 2020/02/17
- [elpa] master 34e4d86 054/135: Fixed variable-set condition, Ian Dunn, 2020/02/17
- [elpa] master a758e6a 051/135: Added tests for finders, Ian Dunn, 2020/02/17
- [elpa] master 3f4595b 052/135: Finished rough draft of documentation, Ian Dunn, 2020/02/17
- [elpa] master 329b39e 058/135: Added installation and setup instructions to documentation, Ian Dunn, 2020/02/17
- [elpa] master e793f3c 047/135: Fixed bugs from last commit, Ian Dunn, 2020/02/17
- [elpa] master c29a951 045/135: Use example instead of src to make HTML export prettier, Ian Dunn, 2020/02/17
- [elpa] master 5b1c81a 049/135: Fixed error in last commit, Ian Dunn, 2020/02/17
- [elpa] master 99939aa 048/135: Handle all errors in Edna forms,
Ian Dunn <=
- [elpa] master d07a8d8 035/135: Added note about quoting file names to documentation., Ian Dunn, 2020/02/17
- [elpa] master bb3c739 044/135: Fixed license blocks in elisp files, Ian Dunn, 2020/02/17
- [elpa] master 3a3ed39 046/135: Various parsing fixes, Ian Dunn, 2020/02/17
- [elpa] master eda515d 039/135: Added check and local settings to Makefile, Ian Dunn, 2020/02/17
- [elpa] master f560f1b 056/135: Fixed error reporting, Ian Dunn, 2020/02/17
- [elpa] master 827d7c1 060/135: Fixed up chain test, Ian Dunn, 2020/02/17
- [elpa] master 89c2ecf 057/135: Added tests for conditions, Ian Dunn, 2020/02/17
- [elpa] master 03bafb0 061/135: Documented delete-property! action, Ian Dunn, 2020/02/17
- [elpa] master 4c26cc8 041/135: Added copyright and licensing information to all files, Ian Dunn, 2020/02/17
- [elpa] master 390ee68 067/135: Fixed ancestors example, Ian Dunn, 2020/02/17