diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2013-04-22 20:46:14 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2013-04-22 20:46:14 +0200 |
commit | 0fff0ba6da30e4ced73f84c8305d80c955bae132 (patch) | |
tree | b9367b1a11282a8e48c597d23ce0fdb146d65bcb | |
parent | 2e67699fe1f478f1238b0bf536fd642359816461 (diff) | |
download | org-mode-0fff0ba6da30e4ced73f84c8305d80c955bae132.tar.gz |
Fix insert-heading
* lisp/org.el (org-insert-heading): Fix problem with inserting
heading.
The commit fixes a bug introduced in bb2022.
-rw-r--r-- | lisp/org.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el index 8c55bd4..02c839c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7509,9 +7509,10 @@ 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 - (org-beginning-of-item) - (looking-at org-list-full-item-re) - (match-string 3))))) + (and (org-in-item-p) + (org-beginning-of-item) + (looking-at org-list-full-item-re) + (match-string 3)))))) (let (begn endn) (when (org-buffer-narrowed-p) (setq begn (point-min) endn (point-max)) |