Merge branch 'maint'

This commit is contained in:
Bastien Guerry 2014-05-20 23:28:33 +02:00
commit c264904b12
1 changed files with 4 additions and 1 deletions

View File

@ -7768,7 +7768,10 @@ command."
;; If we insert after content, move there and clean up whitespace
(when (and respect-content
(not (org-looking-at-p org-outline-regexp-bol)))
(org-end-of-subtree nil t)
(if (not (org-before-first-heading-p))
(org-end-of-subtree nil t)
(re-search-forward org-outline-regexp-bol)
(beginning-of-line 0))
(skip-chars-backward " \r\n")
(and (not (looking-back "^\\*+"))
(looking-at "[ \t]+") (replace-match ""))