summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-01-20 16:32:03 +0100
committerBastien Guerry <bzg@altern.org>2012-01-20 16:32:03 +0100
commitfd233c04910239699de94b9e386ac2c657c05b6b (patch)
tree2e12ca6c39845def19a3de54a4cdae95dba39c05
parented1a701cf51c30552e802f21e3cc9dac2b17de53 (diff)
downloadorg-mode-fd233c04910239699de94b9e386ac2c657c05b6b.tar.gz
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.
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index b204b0b..ba8d144 100644
--- a/lisp/org.el
+++ b/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))