aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuan Fu2024-11-29 21:11:19 -0800
committerYuan Fu2024-11-29 21:13:31 -0800
commitb38eb6da1d164b50f4b727b2539cf02c40b73123 (patch)
treebc1f3da6abb7aca127ac5c0e0c6b2e3e58f8bdd0
parent9fdb764898dd4f40f562f8540767a18c827fe7d3 (diff)
downloademacs-b38eb6da1d164b50f4b727b2539cf02c40b73123.tar.gz
emacs-b38eb6da1d164b50f4b727b2539cf02c40b73123.zip
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.
-rw-r--r--lisp/progmodes/c-ts-mode.el9
1 files 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."
147(defcustom c-ts-mode-indent-style 'gnu 147(defcustom c-ts-mode-indent-style 'gnu
148 "Style used for indentation. 148 "Style used for indentation.
149 149
150The selected style could be one of GNU, K&R, LINUX or BSD. If 150The selected style could be one of GNU, K&R, LINUX or BSD. If the
151one of the supplied styles doesn't suffice, the value could be 151supplied styles don't suffice, the value could be a function instead.
152a function instead. This function is expected to return a list 152This function takes no arguments and is expected to return a list of
153that follows the form of `treesit-simple-indent-rules'." 153indent RULEs as described in `treesit-simple-indent-rules'. Note that
154the list of RULEs doesn't need to contain the language symbol."
154 :version "29.1" 155 :version "29.1"
155 :type '(choice (symbol :tag "Gnu" gnu) 156 :type '(choice (symbol :tag "Gnu" gnu)
156 (symbol :tag "K&R" k&r) 157 (symbol :tag "K&R" k&r)