Permalink
Browse files

Ignore errors when updating org cookies

  • Loading branch information...
1 parent 56ba12e commit e56a7ef3e8bf629ae8aa173747f2c8fbfec3c054 @magnars committed Mar 1, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 setup-org.el
View
@@ -1,8 +1,9 @@
(defun myorg-update-parent-cookie ()
(when (equal major-mode 'org-mode)
(save-excursion
- (org-back-to-heading)
- (org-update-parent-todo-statistics))))
+ (ignore-errors
+ (org-back-to-heading)
+ (org-update-parent-todo-statistics)))))
(defadvice org-kill-line (after fix-cookies activate)
(myorg-update-parent-cookie))

0 comments on commit e56a7ef

Please sign in to comment.