From da232c9711f4edfc5425b0fc4bdfe91d9b6ef395 Mon Sep 17 00:00:00 2001 From: Joost Diepenmaat Date: Fri, 25 Oct 2013 11:08:46 +0200 Subject: [PATCH] Correctly indent BEGIN_SRC and END_SRC lines * lisp/org.el (org-indent-region): BEGIN_SRC and END_SRC lines should not be considered part of the source block for the purposes of indentation. TINYCHANGE --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index d795c78ef..bb6b54315 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -22155,7 +22155,7 @@ hierarchy of headlines by UP levels before marking the subtree." (let ((line-end (org-current-line end))) (goto-char start) (while (< (org-current-line) line-end) - (cond ((org-in-src-block-p) (org-src-native-tab-command-maybe)) + (cond ((org-in-src-block-p t) (org-src-native-tab-command-maybe)) (t (call-interactively 'org-indent-line))) (move-beginning-of-line 2)))))