From 0bc48084fb56f8a6ad1869ecbd6d263180d5c8b7 Mon Sep 17 00:00:00 2001 From: Matthew Batson Date: Sat, 13 Jun 2026 18:15:20 +1000 Subject: [PATCH] ; Improve doc string of electric-indent internal * lisp/electric.el (electric-indent--activate-indent-actions): Doc string fix. --- lisp/electric.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/electric.el b/lisp/electric.el index 1ed93d9f2f9..e2deb7aa63d 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -275,7 +275,8 @@ mode set `electric-indent-inhibit', but this can be used as a workaround.") (indent-region (point-min) (point-max)))))) (defun electric-indent--activate-indent-actions (enable) - "Enable the actions specified in `electric-indent-actions'." + "If ENABLE is non-nil, enable the actions in `electric-indent-actions'. +If ENABLE is nil, disable them." (advice-remove 'yank #'electric-indent--yank-advice) (remove-hook 'before-save-hook #'electric-indent-save-hook) (when enable