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:
parent
167157fc21
commit
2f8c2e64e0
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
indent RULEs as described in `treesit-simple-indent-rules'. Note that
|
||||||
the list of RULEs doesn't need to contain the language symbol."
|
the list of RULEs doesn't need to contain the language symbol."
|
||||||
:version "29.1"
|
:version "29.1"
|
||||||
:type '(choice (symbol :tag "Gnu" gnu)
|
:type '(choice (const :tag "Gnu" gnu)
|
||||||
(symbol :tag "K&R" k&r)
|
(const :tag "K&R" k&r)
|
||||||
(symbol :tag "Linux" linux)
|
(const :tag "Linux" linux)
|
||||||
(symbol :tag "BSD" bsd)
|
(const :tag "BSD" bsd)
|
||||||
(function :tag "A function for user customized style" ignore))
|
(function :tag "A function for user customized style" ignore))
|
||||||
:set #'c-ts-mode--indent-style-setter
|
:set #'c-ts-mode--indent-style-setter
|
||||||
:safe 'c-ts-indent-style-safep
|
:safe 'c-ts-indent-style-safep
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue