From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#75361: 31.0.50; run-with-idle-timer not working unless there is some activity Date: Mon, 6 Jan 2025 15:28:06 -0600 Message-ID: References: <87r05jpm38.fsf@gnu.support> <86o70mbeo1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1523"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75361-done@debbugs.gnu.org To: Eli Zaretskii , Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 06 22:29:34 2025 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 1tUufG-0000G3-8d for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Jan 2025 22:29:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUuev-0001Km-V9; Mon, 06 Jan 2025 16:29:14 -0500 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 1tUuel-0001JX-PF for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 16:29:04 -0500 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 1tUuek-0003le-Vy for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 16:29:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=ogx1bYsi7GWOyK987ndEU/peGS2ISygZ8ctQ6zBjaKg=; b=vcpyPPCsB60bwMnrOUlbmgZBrh0ZOebCMG1sW73Vy7n+RbuBGA6CDbEY8LDxfU6RxfFemOe79TVQ2PG+jABj6pSCoDLCBFgq59WRK3I9xwXt8b9n6Ck+6LVMXJQaMMWL7IyfMtARnKCNvAZwbQe8hsuFw9SXCUYfF/UXq/nptKuQzHyZpPc71BnhXiPOqz0J0lVnh9ibItjgtu6YgWMjjyS2pfHXsm34DmCIrbE75KkbvmlYt8dvXKt/LSzyat3FuGJMk3TkzCbfVWckuuJzVTg0Thns/M3Nht8E4LuvkrZbJs3TtYW1YhQMtVduMgZ0Kbqgv4VIFOqSNsFtTk7c5A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUuek-0004FP-KH for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 16:29:02 -0500 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jan 2025 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 75361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Mail-Followup-To: 75361@debbugs.gnu.org, stefankangas@gmail.com, bugs@gnu.support Original-Received: via spool by 75361-done@debbugs.gnu.org id=D75361.173619889116244 (code D ref 75361); Mon, 06 Jan 2025 21:29:02 +0000 Original-Received: (at 75361-done) by debbugs.gnu.org; 6 Jan 2025 21:28:11 +0000 Original-Received: from localhost ([127.0.0.1]:40816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUudv-0004Dw-G9 for submit@debbugs.gnu.org; Mon, 06 Jan 2025 16:28:11 -0500 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:60632) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUuds-0004Di-BS for 75361-done@debbugs.gnu.org; Mon, 06 Jan 2025 16:28:10 -0500 Original-Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5d3ecae02beso18715811a12.0 for <75361-done@debbugs.gnu.org>; Mon, 06 Jan 2025 13:28:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736198887; x=1736803687; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=ogx1bYsi7GWOyK987ndEU/peGS2ISygZ8ctQ6zBjaKg=; b=Bbx63U2rX+DuofhctgmCijz3xxBAOKu+CbaH5tV8Y/ZRMeH7tLtff30frv+zCIdFDk 2SXHln1Jq1pVEfm5m6kV0cWDbVBsRKdU66N9oZrd+jfcoYuXtfxt4vBmY8/YndfVedo+ 2Z9k9Ec+lNYUwKuzVQU/OHGzbyWWHlxB6Za91pyslgdHfewhft9UY+xDhR1Xll1onN8H Swb+jERNG/Rcm/qw2TlIb+qF9wzgsBI+tet+42iEf6sISk6OJCTGxsGfiVjSAQlpGqcq mbbJwE6oA60CBKwTS3H/Sst3kY8EaGhPMrIpWLe8v+dpbfZ5U+jZBUkbsvylnRVA6/9d vjAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736198887; x=1736803687; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ogx1bYsi7GWOyK987ndEU/peGS2ISygZ8ctQ6zBjaKg=; b=wAzut3whmszH2bCWP8wIlpi64rKSiripiY1ujCVmTZT/Ij5TGChcXndQw1p4TBWuVK VeuU8U/fPuulp3+iYG0JKUXe00VPnIh0kgep8lk6M3Nwxy+M3K6RAxHGEffmLbB3mIfE YTcLoe6lSKSmgsgVFKKc/8k2eGqANsK98Z4HOTWqSFXeFyeFjwhHp8q843RcJ1ssOVvU 5Jdc006OjpLX5gOd+9MAzWcsNwHpGCDsbc4DPTv6QyuvNn98doEE0MV74gs2PalHuk2N 89qDGTiOxC4sVedYpWpUCaYApJOqYjfZfC+5XSHrNMFoNA6MdtxhuQm7YLgYPcpGhb4F w0OA== X-Gm-Message-State: AOJu0Yy2icWo/u/jE6Le5jgCHiW5X/feOZYH2FM9CeLGdG4QfXVnf4Ir vgqROhh4+1gHorI0VU/DFTVOSWytF+ApZaxw30tI0K/7bfRiXr37nCsT8kTKTK1KexyXkfZVBKT l0ZRLmN9TnubOtaBWkR2v09ygM5g= X-Gm-Gg: ASbGncsnS9rg5KzSAc25e3yKwJTIo3rYlwWVtXeeeHwqiBLuUT2hbZLjP05yKOXppUm hzVQHhyvwQDhLe7MRA+0qiKl1XJZS+nqi1hZmRQ9S X-Google-Smtp-Source: AGHT+IHd5IpG2RFpPReNoBCOmKDAlciszOePKvf3ZQmAzn874EfUUvwFn0vmmUGVQU61ad1I81jo8laX0IOOJk3F7cc= X-Received: by 2002:a05:6402:354b:b0:5d4:4143:c082 with SMTP id 4fb4d7f45d1cf-5d81ddfbda8mr46632362a12.21.1736198886775; Mon, 06 Jan 2025 13:28:06 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 6 Jan 2025 15:28:06 -0600 In-Reply-To: <86o70mbeo1.fsf@gnu.org> X-Gm-Features: AbW1kvZj6dbN4WVQns2MTuKOsB3atxgq-UmDKCA42t-QjLDC-v_I3JgPwNyBi84 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:298704 Archived-At: Eli Zaretskii writes: > tags 75361 notabug > thanks > >> From: Jean Louis >> Date: Sat, 04 Jan 2025 01:30:03 +0300 >> >> >> The function is not working unless there is some activity. I remember it >> worked well in past, do not know what changed. >> >> (defun my-message () >> (message (format-time-string "%T Hello"))) >> >> (run-with-idle-timer 10 t 'my-message) >> >> >From that point I will see one hello message but if I do not touch >> anything it will not repeat. > > That's expected. From the ELisp manual: > > Emacs becomes =E2=80=9Cidle=E2=80=9D when it starts waiting for user= input (unless it > waits for input with a timeout, *note Reading One Event::), and it > remains idle until the user provides some input. If a timer is set for > five seconds of idleness, it runs approximately five seconds after Emac= s > first becomes idle. Even if REPEAT is non-=E2=80=98nil=E2=80=99, this = timer will not > run again as long as Emacs remains idle, because the duration of > idleness will continue to increase and will not go down to five seconds > again. > >> That is bug. >> >> It should be repeating the message each 10 seconds. > > See above: your expectations are incorrect. > > This is not a bug. I'm therefore closing this bug report.