Browse Source

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
Nicolas Goaziou 8 years ago
parent
commit
19ea827cd7
1 changed files with 2 additions and 4 deletions
  1. 2 4
      lisp/org-list.el

+ 2 - 4
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))