From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73291: 31.0.50; `clean-buffer-list' activates `midnight-mode' Date: Tue, 17 Sep 2024 15:50:11 +0300 Message-ID: <86h6aebg1o.fsf@gnu.org> References: <87plp4vy08.fsf@ledu-giraud.fr> <86ikuvd9tp.fsf@gnu.org> <87frpyofoi.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73291@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 14:51:09 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sqXfg-0007Gc-6o for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 14:51:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqXfS-0004sm-4c; Tue, 17 Sep 2024 08:50:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqXfN-0004sa-8z for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 08:50:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqXfM-0003or-Vk for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 08:50:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=yexPaHUafh/nxFJozo34hYYQAcMBMQ1GN4vgt0O8WCg=; b=dAw7Ztib5Nhm+towU2hewCLYTXqN7Bbd36g21B1WRyhFERACzImC3wiGxAj8K2QhdU+TkuxgDKxjlLKuBXJezzD8hXuWxk2Qs40GLbo0FSd3Jd/SjV45hdM5TiKh6MacGFp9mqmcIuQUnOsla9QF36uDp3toA2h2X3lE7j3K5l7K94rEcmzIVl+AHE21WiMcubT5Ay9PoyhOU0uHwu2LWf0Fo1Ct6f7C0ECg4gVI7KeemudKUdUw8dxEnL/G5yZLxy0Mg+7gftV2yk2c0TSymnxKei0fjeCPst87KA31tpuT0qvHVzQqu17clUX6+o8O/qryUlxFYbHrHB8djPPc8g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqXfa-0002Ui-Is for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 08:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2024 12:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73291 X-GNU-PR-Package: emacs Original-Received: via spool by 73291-submit@debbugs.gnu.org id=B73291.17265774409548 (code B ref 73291); Tue, 17 Sep 2024 12:51:02 +0000 Original-Received: (at 73291) by debbugs.gnu.org; 17 Sep 2024 12:50:40 +0000 Original-Received: from localhost ([127.0.0.1]:54194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqXfE-0002Tv-Dz for submit@debbugs.gnu.org; Tue, 17 Sep 2024 08:50:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqXfC-0002Tb-Ho for 73291@debbugs.gnu.org; Tue, 17 Sep 2024 08:50:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqXer-0003nP-5t; Tue, 17 Sep 2024 08:50:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=yexPaHUafh/nxFJozo34hYYQAcMBMQ1GN4vgt0O8WCg=; b=Tob/iFDoNUSN KeyLmmdkNnqkqHI3/X9MgTfHHrBUUBUH8M66syDP2VksSCnAOeFDgGGsO4T8gs3DZGFi69yy6ri3c o5M07zlEOaNq7g/PilQaW7/XN9chDVL5UqBxgK9uvRSnrXMRnndwRTA5bGJ3O338bPqVIJ+3ZQZ4S VH3bM+7ouswrmX43QQaPL0badebk/UMAJEy+XMEecrNPy1/MKFZrvQdKcLBXi9gGy7hw6HT8sNwxf TEZ2xq2zF9H0EkpcEmpwSmxhfxlVQvfCA02ypxHDyVGBrlVzE9wafCYTY1kvPItfiTLDUU009SLn3 f83i6QD2QybJXHP4hgogyQ==; In-Reply-To: <87frpyofoi.fsf@ledu-giraud.fr> (message from Manuel Giraud on Tue, 17 Sep 2024 10:19:41 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291939 Archived-At: > From: Manuel Giraud > Cc: 73291@debbugs.gnu.org > Date: Tue, 17 Sep 2024 10:19:41 +0200 > > Eli Zaretskii 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.