Browse Source

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 13 years ago
parent
commit
fd233c0491
1 changed files with 2 additions and 1 deletions
  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))