Fix checkbox creation in numbered lists
commitbb202235dfddf8fbdf71c5289c59da974057a74d
authorCarsten Dominik <carsten.dominik@gmail.com>
Mon, 22 Apr 2013 05:43:45 +0000 (22 07:43 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Mon, 22 Apr 2013 05:43:45 +0000 (22 07:43 +0200)
tree238203bfe378cdf82516168071a76141df3ddf79
parent774b5326795933c29e525017d82477249f8f8833
Fix checkbox creation in numbered lists

* lisp/org.el (org-insert-heading): Check for checkbox at the
  beginning of the item, not just at the beginning of the line.

Without this fix, M-RET in numbered lists would create a checkboxed
item because it was using match data from a previous match.  Now we
make sure we go back to the beginning of the item, so that the match
really tells us if there was a checkbox there.
lisp/org.el