bug#81560: 31.0.91; dframe-update-speed specifies :type integer
Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Eli Zaretskii <[email protected]> writes: >> From: Daniel Mendler <[email protected]> >> Cc: [email protected] >> Date: Thu, 06 Aug 2026 13:01:03 +0200 >> >> I think the type number is appropriate. There are plenty of examples... > > OK, but please be sure to update the doc string to state the > limitation, because someone else might drill down to the actual call > of run-with-idle-timer and ask the same question. Patch attached. This can go either to master or emacs-31 since it is so trivial. Daniel
0001-PATCH-dframe-update-speed-Generalize-defcustom-type-.patch
(text/x-diff, 1.2 KB)
From 8a396f656265e1b92140aeb08d5325afcf00d3d4 Mon Sep 17 00:00:00 2001 From: Daniel Mendler <[email protected]> Date: Sun, 9 Aug 2026 17:16:31 +0200 Subject: [PATCH] dframe-update-speed: Generalize defcustom :type to number * lisp/dframe.el (dframe-update-speed): Generalize type from integer to number and update docstring. --- lisp/dframe.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/dframe.el b/lisp/dframe.el index 2332ef3056f..d8290a61a73 100644 --- a/lisp/dframe.el +++ b/lisp/dframe.el @@ -127,10 +127,11 @@ dframe-have-timer-flag (defcustom dframe-update-speed 1 "Idle time in seconds needed before dframe will update itself. -Updates occur to allow dframe to display directory information -relevant to the buffer you are currently editing." +Updates occur to allow dframe to display directory information relevant +to the buffer you are currently editing. The value can be an integer or +float since it is passed to `run-with-idle-timer'." :group 'dframe - :type 'integer) + :type 'number) (defcustom dframe-activity-change-focus-flag nil "Non-nil means the selected frame will change based on activity. -- 2.47.3