Fix C-c C-c error when called on attributes attached to a plain list
authorNicolas Goaziou <n.goaziou@gmail.com>
Mon, 21 Jan 2013 20:59:03 +0000 (21 21:59 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 21 Jan 2013 20:59:03 +0000 (21 21:59 +0100)
* lisp/org.el (org-ctrl-c-ctrl-c): Fix error when called on attributes
  attached to a plain list.

lisp/org.el

index 4fe3985..843645f 100644 (file)
@@ -19653,8 +19653,8 @@ This command does many different things, depending on context:
               (org-list-set-checkbox begin struct new-box)))
             (org-list-write-struct
              struct (org-list-parents-alist struct) old-struct)
-            (org-update-checkbox-count-maybe))
-          (org-list-send-list 'maybe))
+            (org-update-checkbox-count-maybe)
+            (save-excursion (goto-char begin) (org-list-send-list 'maybe))))
          ((property-drawer node-property)
           (call-interactively 'org-property-action))
          ((radio-target target)