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.
This commit is contained in:
Ihor Radchenko 2024-05-02 18:18:49 +03:00
parent d8ac958836
commit 55795376b6
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

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