branch: externals/org commit 52b6f29d30a2c97284b034c5fe80dd2cdb9a3099 Author: Mark A. Hershberger <m...@nichework.com> Commit: Kyle Meyer <k...@kyleam.com>
Backport commit c4af4b390 from Emacs Initialize native-tab-width in cases where there is no language mode c4af4b39018923fdfc22b515acc1f6ba3f2b024d Mark A. Hershberger Sat Aug 9 13:07:34 2025 -0400 [ km: This commit is applied here for bookkeeping/traceability purposes. It has already been fixed in a different way with Org's a1a9d408a. ] --- lisp/org-src.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index d8a928b1f9..49fc4103cc 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -665,7 +665,8 @@ Leave point in edit buffer." "Fontify code block between START and END using LANG's syntax. This function is called by Emacs's automatic fontification, as long as `org-src-fontify-natively' is non-nil." - (let ((modified (buffer-modified-p)) native-tab-width) + (let ((modified (buffer-modified-p)) + (native-tab-width tab-width)) (remove-text-properties start end '(face nil)) (let ((lang-mode (org-src-get-lang-mode lang))) (when (fboundp lang-mode)