branch: externals/org
commit 9cd0e47501d18eaf616c9095117eb17e7e036679
Author: Stefan Monnier <[email protected]>
Commit: Kyle Meyer <[email protected]>
Backport commit 578aeedbe from Emacs
* lisp/org.el (org-mode): Don't rely on
`electric-indent-functions-without-reindent'.
(electric-indent-functions-without-reindent): Pare down
578aeedbe986efbae63382a7b9ba1a94372df659
Stefan Monnier
Tue Sep 23 13:48:06 2025 -0400
---
lisp/org.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 9051bf6c8c..9e220b2d3d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4995,8 +4995,9 @@ The following commands are available:
;; Initialize radio targets.
(org-update-radio-target-regexp)
;; Indentation.
- (setq-local indent-line-function 'org-indent-line)
- (setq-local indent-region-function 'org-indent-region)
+ (setq-local indent-line-function #'org-indent-line)
+ (setq-local indent-region-function #'org-indent-region)
+ (setq-local electric-indent-inhibit t)
;; Filling and auto-filling.
(org-setup-filling)
;; Comments.