Subject: Re: bug#66210: 30.0.50; Missing choices in type-break.el

From: Mauro Aranda <[email-masked]>
Date: Tue, 26 Sep 2023 09:18:18 -0300

tags 66210 patch
quit

Patch attached.

From 0e5922906ae80a1a5d486587ac35468de83720fc Mon Sep 17 00:00:00 2001
From: Mauro Aranda <[email-masked]>
Date: Tue, 26 Sep 2023 09:17:14 -0300
Subject: [PATCH] Fix defcustoms in type-break.el (Bug#66210)

* lisp/type-break.el (type-break-good-rest-interval)
(type-break-file-name): Allow nil.
---
 lisp/type-break.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/type-break.el b/lisp/type-break.el
index 494ed80c496..d3371d66863 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -77,7 +77,8 @@ type-break-good-rest-interval
 If a break is interrupted before this much time elapses, the user will be
 asked whether or not really to interrupt the break."
   :set-after '(type-break-interval)
-  :type 'natnum
+  :type '(choice (const :tag "Don't check idle time" nil)
+                 natnum)
   :group 'type-break)
 
 (defcustom type-break-good-break-interval nil
@@ -201,7 +202,8 @@ type-break-file-name
   "Name of file used to save state across sessions.
 If this is nil, no data will be saved across sessions."
   :version "24.4"                       ; added locate-user
-  :type 'file)
+  :type '(choice (const :tag "Don't save data" nil)
+                 file))
 
 (defvar type-break-post-command-hook '(type-break-check)
   "Hook run indirectly by `post-command-hook' for typing break functions.
-- 
2.34.1