1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Use 'const' instead of 'symbol' in 'c-ts-mode-indent-style

The 'symbol' widget is for when the user is expected to enter a
symbol; when using a definite symbol, 'const' is preferred.

* lisp/progmodes/c-ts-mode.el (c-ts-mode-indent-style): Use
'const' to define the options for a 'choice' widget.
This commit is contained in:
Robert Pluim 2025-02-12 11:34:16 +01:00
parent 167157fc21
commit 2f8c2e64e0

View file

@ -147,10 +147,10 @@ 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)
(symbol :tag "Linux" linux)
(symbol :tag "BSD" bsd)
:type '(choice (const :tag "Gnu" gnu)
(const :tag "K&R" k&r)
(const :tag "Linux" linux)
(const :tag "BSD" bsd)
(function :tag "A function for user customized style" ignore))
:set #'c-ts-mode--indent-style-setter
:safe 'c-ts-indent-style-safep