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.
This commit is contained in:
Bastien Guerry 2012-01-20 16:32:03 +01:00
parent ed1a701cf5
commit fd233c0491
1 changed files with 2 additions and 1 deletions

View File

@ -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))