diff options
| author | Yuan Fu | 2024-11-29 21:11:19 -0800 |
|---|---|---|
| committer | Yuan Fu | 2024-11-29 21:13:31 -0800 |
| commit | b38eb6da1d164b50f4b727b2539cf02c40b73123 (patch) | |
| tree | bc1f3da6abb7aca127ac5c0e0c6b2e3e58f8bdd0 | |
| parent | 9fdb764898dd4f40f562f8540767a18c827fe7d3 (diff) | |
| download | emacs-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.el | 9 |
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 | ||
| 150 | The selected style could be one of GNU, K&R, LINUX or BSD. If | 150 | The selected style could be one of GNU, K&R, LINUX or BSD. If the |
| 151 | one of the supplied styles doesn't suffice, the value could be | 151 | supplied styles don't suffice, the value could be a function instead. |
| 152 | a function instead. This function is expected to return a list | 152 | This function takes no arguments and is expected to return a list of |
| 153 | that follows the form of `treesit-simple-indent-rules'." | 153 | indent RULEs as described in `treesit-simple-indent-rules'. Note that |
| 154 | the 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) |