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

org.el (org-return): Act normally when in code blocks.

* org.el (org-return): Act normally when in code blocks.

Thanks to Sébastien Vauban for spotting this.
Bastien Guerry преди 14 години
родител
ревизия
fd233c0491
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -18494,7 +18494,8 @@ Calls `org-table-next-row' or `newline', depending on context.
 See the individual commands for more information."
   (interactive)
   (cond
-   ((bobp) (if indent (newline-and-indent) (newline)))
+   ((or (bobp) (org-in-src-block-p))
+    (if indent (newline-and-indent) (newline)))
    ((org-at-table-p)
     (org-table-justify-field-maybe)
     (call-interactively 'org-table-next-row))