소스 검색

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