summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-03-30 19:00:45 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-03-30 19:00:45 +0200
commit2f72b3efcb675a97b35240463da40513d0b3727f (patch)
tree18be100ce0792ac8d160149ab2576d049d495a6d
parentb8fdddcd9cba913478a084bfaf1e6372a5e8670e (diff)
downloadorg-mode-2f72b3efcb675a97b35240463da40513d0b3727f.tar.gz
org-list: fix cookie updating
* lisp/org-list.el: move org-update-checkbox-count-maybe call outside of save-excursion to get back to original position.
-rw-r--r--lisp/org-list.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 7787706..2950daa 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -2164,8 +2164,8 @@ in subtree, ignoring drawers."
"Checkboxes were removed due to unchecked box at line %d"
(org-current-line block-item))))
(goto-char bottom)
- (org-list-struct-apply-struct struct struct-copy))))
- (org-update-checkbox-count-maybe)))
+ (org-list-struct-apply-struct struct struct-copy)))))
+ (org-update-checkbox-count-maybe))
(defun org-reset-checkbox-state-subtree ()
"Reset all checkboxes in an entry subtree."