diff options
author | Bastien Guerry <bzg@altern.org> | 2013-02-13 19:27:01 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-02-13 19:27:01 +0100 |
commit | 791a8d6bcc68a1c5c7ba3389da4c7be844a118bc (patch) | |
tree | 1708a7986261499a6004c230064d4df4baeb00ba | |
parent | 127bffa9e9cfe525fad0d8c3a7fde050d21a06a6 (diff) | |
parent | 6d7142b145d0398247a0dcd6cdec087693c08048 (diff) | |
download | org-mode-791a8d6bcc68a1c5c7ba3389da4c7be844a118bc.tar.gz |
Merge branch 'maint'
-rw-r--r-- | lisp/org-mobile.el | 2 | ||||
-rw-r--r-- | lisp/org.el | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index 843ccdd..debcb16 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -1070,7 +1070,7 @@ be returned that indicates what went wrong." (if (org-on-heading-p) ; if false we are in top-level of file (progn (end-of-line 1) - (org-insert-heading-respect-content) + (org-insert-heading-respect-content t) (org-demote)) (beginning-of-line) (insert "* ")) diff --git a/lisp/org.el b/lisp/org.el index a7480ce..f305979 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7445,12 +7445,14 @@ This is a list with the following elements: (org-move-subtree-down) (end-of-line 1)) -(defun org-insert-heading-respect-content () - (interactive) +(defun org-insert-heading-respect-content (invisible-ok) + "Insert heading with `org-insert-heading-respect-content' set to t." + (interactive "P") (let ((org-insert-heading-respect-content t)) - (org-insert-heading t))) + (org-insert-heading t invisible-ok))) (defun org-insert-todo-heading-respect-content (&optional force-state) + "Insert TODO heading with `org-insert-heading-respect-content' set to t." (interactive "P") (let ((org-insert-heading-respect-content t)) (org-insert-todo-heading force-state t))) |