]> git.eshelyaron.com Git - emacs.git/commitdiff
Use 'const' instead of 'symbol' in 'c-ts-mode-indent-style
authorRobert Pluim <rpluim@gmail.com>
Wed, 12 Feb 2025 10:34:16 +0000 (11:34 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 14 Feb 2025 11:43:05 +0000 (12:43 +0100)
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)

lisp/progmodes/c-ts-mode.el

index 0396ddc2c8c6f32f37509907641fca3cf4d3d2fb..499c2ad66d4f183a58fa4ddc1747c2e3ae7b5179 100644 (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