Subject: bug#74235: [PATCH] ; Remove 'nil' from some 'lua-ts-mode' options

From: john muhl <[email-masked]>
Date: Wed, 06 Nov 2024 15:22:34 -0600

>From 9875334458c9b6820eeb1f5762c994e52cc9cdba Mon Sep 17 00:00:00 2001
From: john muhl <[email-masked]>
Date: Wed, 6 Nov 2024 14:56:24 -0600
Subject: [PATCH] ; Remove 'nil' from some 'lua-ts-mode' options

* lisp/progmodes/lua-ts-mode.el (lua-ts-luacheck-program):
(lua-ts-inferior-program): Remove 'nil' as it is never a valid
choice.  (Bug#74235)
---
 lisp/progmodes/lua-ts-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
index 20bc1f3e158..1ab0b29608f 100644
--- a/lisp/progmodes/lua-ts-mode.el
+++ b/lisp/progmodes/lua-ts-mode.el
@@ -72,7 +72,7 @@ lua-ts-indent-offset
 
 (defcustom lua-ts-luacheck-program "luacheck"
   "Location of the Luacheck program."
-  :type '(choice (const :tag "None" nil) string)
+  :type 'string
   :version "30.1")
 
 (defcustom lua-ts-inferior-buffer "*Lua*"
@@ -83,7 +83,7 @@ lua-ts-inferior-buffer
 
 (defcustom lua-ts-inferior-program "lua"
   "Program to run in the inferior Lua process."
-  :type '(choice (const :tag "None" nil) string)
+  :type 'string
   :version "30.1")
 
 (defcustom lua-ts-inferior-options '("-i")
-- 
2.47.0

john muhl <[email-masked]> writes:

> Tags: patch
>
> For some silly reason the lua-ts-{inferior,luacheck}-program
> options ended up with an option for “None”. Obviously setting your
> Lua interpreter or linter program to nil is not going to work.
>
> Any chance it could make it into emacs-30?
>
> Thanks.