From b38eb6da1d164b50f4b727b2539cf02c40b73123 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Fri, 29 Nov 2024 21:11:19 -0800 Subject: [PATCH] Fix docstring of c-ts-mode-indent-style * lisp/progmodes/c-ts-mode.el (c-ts-mode-indent-style): Make the docstring reflect what's expected by the code. --- lisp/progmodes/c-ts-mode.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 31f822b219d..e08e99cf087 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -147,10 +147,11 @@ symbol." (defcustom c-ts-mode-indent-style 'gnu "Style used for indentation. -The selected style could be one of GNU, K&R, LINUX or BSD. If -one of the supplied styles doesn't suffice, the value could be -a function instead. This function is expected to return a list -that follows the form of `treesit-simple-indent-rules'." +The selected style could be one of GNU, K&R, LINUX or BSD. If the +supplied styles don't suffice, the value could be a function instead. +This function takes no arguments and is expected to return a list of +indent RULEs as described in `treesit-simple-indent-rules'. Note that +the list of RULEs doesn't need to contain the language symbol." :version "29.1" :type '(choice (symbol :tag "Gnu" gnu) (symbol :tag "K&R" k&r) -- 2.30.2