diff options
author | Bastien Guerry <bzg@altern.org> | 2013-03-05 08:28:26 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-03-05 08:28:26 +0100 |
commit | b472884e5e7e9caf1ba70e8a09a67d92684650a8 (patch) | |
tree | 972e79965bd6da63918cf0e31ad2830ff4895344 | |
parent | 50fc4c76308d7c7235d07cb9ec61056bb4571332 (diff) | |
download | org-mode-b472884e5e7e9caf1ba70e8a09a67d92684650a8.tar.gz |
org.el (org-insert-heading): Don't delete spaces in empty headlines
* org.el (org-insert-heading): Don't delete spaces in empty
headlines.
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el index 64b40a1..781e3be 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7447,6 +7447,8 @@ This is important for non-interactive uses of the command." (org-end-of-subtree nil t) (and (looking-at "^\\*") (backward-char 1)) (while (and (not (bobp)) + ;; Don't delete spaces in empty headlines + (not (looking-back org-outline-regexp)) (member (char-before) '(?\ ?\t ?\n))) (backward-delete-char 1))) (let ((p (point))) |