Browse Source

org.el: Use `newline-and-indent' when in a property drawer.

* org.el (org-meta-return): Use `newline-and-indent' when in a
property drawer.
Bastien Guerry 13 years ago
parent
commit
d1e58716dd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lisp/org.el

+ 2 - 0
lisp/org.el

@@ -18796,6 +18796,8 @@ See the individual commands for more information."
   (interactive "P")
   (interactive "P")
   (cond
   (cond
    ((run-hook-with-args-until-success 'org-metareturn-hook))
    ((run-hook-with-args-until-success 'org-metareturn-hook))
+   ((or (org-at-drawer-p) (org-at-property-p))
+    (newline-and-indent))
    ((org-at-table-p)
    ((org-at-table-p)
     (call-interactively 'org-table-wrap-region))
     (call-interactively 'org-table-wrap-region))
    (t (call-interactively 'org-insert-heading))))
    (t (call-interactively 'org-insert-heading))))