summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-02-12 23:52:40 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2011-02-18 13:43:49 +0100
commit19ea827cd75bfefb6269297a72afeefa28c8c2e7 (patch)
tree57ac8b5aceccc75fe7861e0f63b3796a3c851d95
parent713262edc1ba3703e60967873e202a1f09ba3789 (diff)
downloadorg-mode-19ea827cd75bfefb6269297a72afeefa28c8c2e7.tar.gz
org-list: unwrap org-entry-get from ignore-errors
* lisp/org-list.el (org-toggle-checkbox, org-update-checkbox-count): no need to wrap org-entry-get in ignore-errors since commit 7dd425cc5d42fb297f547f713edfdc936f9271f0
-rw-r--r--lisp/org-list.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 37efb3b..16a42ea 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -2079,7 +2079,7 @@ in subtree, ignoring drawers."
block-item
lim-up
lim-down
- (orderedp (ignore-errors (org-entry-get nil "ORDERED")))
+ (orderedp (org-entry-get nil "ORDERED"))
(bounds
;; In a region, start at first item in region
(cond
@@ -2189,9 +2189,7 @@ With optional prefix argument ALL, do this for the whole buffer."
(recursivep
(or (not org-hierarchical-checkbox-statistics)
(string-match "\\<recursive\\>"
- (or (ignore-errors
- (org-entry-get nil "COOKIE_DATA"))
- ""))))
+ (or (org-entry-get nil "COOKIE_DATA") ""))))
(bounds (if all
(cons (point-min) (point-max))
(cons (or (ignore-errors (org-back-to-heading) (point))