GNU bug report logs -
#73291
31.0.50; `clean-buffer-list' activates `midnight-mode'
Previous Next
Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>
Date: Mon, 16 Sep 2024 07:51:02 UTC
Severity: normal
Found in version 31.0.50
Fixed in version 31.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Cc: 73291 <at> debbugs.gnu.org
> Date: Tue, 17 Sep 2024 10:19:41 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Can you try this and see if it solves the problem, and doesn't break
> > the other uses of midnight-mode and or clean-buffer-list?
>
> Thanks. It solves the issue of activacting the midnight-mode: now
> `clean-buffer-list' is just done once and won't run the next day. But
> now, when I do M-x midnight-mode, I get the following error:
>
> --8<---------------cut here---------------start------------->8---
> timer--activate: Invalid or uninitialized timer
> --8<---------------cut here---------------end--------------->8---
So not only did it activate the timer when loading the package, it
also relied on that for the mode to work...
The fix is to add
(midnight-delay-set 'midnight-delay midnight-delay)
to midnight-mode function.
This bug report was last modified 239 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.