Преглед на файлове

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 години
родител
ревизия
d1e58716dd
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      lisp/org.el

+ 2 - 0
lisp/org.el

@@ -18796,6 +18796,8 @@ See the individual commands for more information."
   (interactive "P")
   (cond
    ((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)
     (call-interactively 'org-table-wrap-region))
    (t (call-interactively 'org-insert-heading))))