From 55795376b639eec12164d22634763127a22fe4c8 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 2 May 2024 18:18:49 +0300 Subject: [PATCH] org-indent-line: Do not rely upon TAB being bound to indentation * lisp/org.el (org-indent-line): When indenting natively in src blocks, call `indent-line-function' instead of relying upon "TAB" binding doing indentation. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index ad4d1b9d3..a3d0c4547 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19660,7 +19660,7 @@ Also align node properties according to `org-property-format'." (org-with-point-at (org-element-property :begin element) (+ (org-current-text-indentation) org-edit-src-content-indentation))))) - (org-babel-do-key-sequence-in-edit-buffer (kbd "TAB")) + (org-babel-do-in-edit-buffer (funcall indent-line-function)) (when (and block-content-ind (looking-at-p "^$")) (indent-line-to block-content-ind)))) (t