From: Robert Pluim Date: Wed, 12 Feb 2025 10:34:16 +0000 (+0100) Subject: Use 'const' instead of 'symbol' in 'c-ts-mode-indent-style X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ab7e41df180b65d49bd880102bcfb1e93eeaf083;p=emacs.git 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. (cherry picked from commit 2f8c2e64e03d85e2093b47e15aa35497054f922f) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 0396ddc2c8c..499c2ad66d4 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -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