diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2013-04-22 07:43:45 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2013-04-22 07:43:45 +0200 |
commit | bb202235dfddf8fbdf71c5289c59da974057a74d (patch) | |
tree | 238203bfe378cdf82516168071a76141df3ddf79 | |
parent | 774b5326795933c29e525017d82477249f8f8833 (diff) | |
download | org-mode-bb202235dfddf8fbdf71c5289c59da974057a74d.tar.gz |
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.
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 691f880..743845b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7509,7 +7509,7 @@ This is important for non-interactive uses of the command." (and (not (org-in-item-p)) org-insert-heading-respect-content) (not (org-insert-item (save-excursion - (beginning-of-line) + (org-beginning-of-item) (looking-at org-list-full-item-re) (match-string 3))))) (let (begn endn) |