浏览代码

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 14 年之前
父节点
当前提交
19ea827cd7
共有 1 个文件被更改,包括 2 次插入4 次删除
  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))