emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 4fd00ff1f7e: Fix defcustoms in type-break.el (Bug#66210)


From: Stefan Kangas
Subject: emacs-29 4fd00ff1f7e: Fix defcustoms in type-break.el (Bug#66210)
Date: Sat, 30 Sep 2023 19:50:33 -0400 (EDT)

branch: emacs-29
commit 4fd00ff1f7e7183cf1e4fa864ba83bc646a5356f
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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 1aa2b9d2997..10ceaf7cb5c 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -77,7 +77,8 @@ rest from typing, then the next typing break is simply 
rescheduled for later.
 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 @@ key is pressed."
   "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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]