From unknown Mon Sep 08 01:50:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#79227 <79227@debbugs.gnu.org> To: bug#79227 <79227@debbugs.gnu.org> Subject: Status: 30.1.90; run-with-timer should error if REPEAT is not a number or nil Reply-To: bug#79227 <79227@debbugs.gnu.org> Date: Mon, 08 Sep 2025 08:50:51 +0000 retitle 79227 30.1.90; run-with-timer should error if REPEAT is not a numbe= r or nil reassign 79227 emacs submitter 79227 Spencer Baugh severity 79227 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 12 17:26:40 2025 Received: (at submit) by debbugs.gnu.org; 12 Aug 2025 21:26:40 +0000 Received: from localhost ([127.0.0.1]:55112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ulwVz-0005Lv-ML for submit@debbugs.gnu.org; Tue, 12 Aug 2025 17:26:39 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34492) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ulwVu-0005LG-Ow for submit@debbugs.gnu.org; Tue, 12 Aug 2025 17:26:37 -0400 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 1ulwVn-0001Hk-KC for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2025 17:26:28 -0400 Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ulwVf-00009z-Su for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2025 17:26:26 -0400 From: Spencer Baugh To: bug-gnu-emacs@gnu.org Subject: 30.1.90; run-with-timer should error if REPEAT is not a number or nil X-Debbugs-Cc: Date: Tue, 12 Aug 2025 17:26:14 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1755033974; bh=oqHbNq7pTHN8bmAmqC2gxTsuk8RtdJ0Re3QSCrkI3zk=; h=From:To:Subject:Date; b=Caw+8bI4kNhsQGsrihauKmVyuJ+r2bP1hwyZWcJ8jJo1eGVtRz4/NOEkoPd9NmlOb S6mDD5y8h+dCvlo74zJu2ZTo2zWO7covrDwdl5ox/j6CzRYsUziCq7DU60MHjCfs6Q 3drDccvK6QASISE/tpD9tjmLs0N12we27N7p8Gd8axo1A4v+qoJ5oaDb1iQ88r0R6j IPjVz+LDGgvqH9MiWcwqJGimZEy4Gr+HHvA9vq4w/oRR5OjFVGhfyAYHO2MYjRgwaY 1BmaVy2OSkOCd5r8L1Zke7kNG6jf57v/3FAKLcWJIkoLHqO29BDEvaVn/1+FoOMBvl +1VN+L18Ub+4w== Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) The docstring of run-with-timer says REPEAT must be a number or nil, but it doesn't error if REPEAT is, for example, t. This is likely to happen with run-with-idle-timer accepts REPEAT=t. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 16 03:56:16 2025 Received: (at 79227) by debbugs.gnu.org; 16 Aug 2025 07:56:16 +0000 Received: from localhost ([127.0.0.1]:40746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unBlw-000771-3R for submit@debbugs.gnu.org; Sat, 16 Aug 2025 03:56:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46192) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unBlr-00076Z-79 for 79227@debbugs.gnu.org; Sat, 16 Aug 2025 03:56:14 -0400 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 1unBll-0008Ae-4G; Sat, 16 Aug 2025 03:56:05 -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=KUw/BQLkCk9ojeFbOugamlBCfjStieyQKQurIoBbbj4=; b=jqM2eEWhLeoF 1snzlJvzsO9g+CCswm1LMmtW50zix94Xsb0NeQJ9URnUdtE3dr+JnLg1HkZ0mF0kCGz47JLa5N7et 7+lQGTZQvBEJ95AHfHkAmJsaJAYQgcvClJXcFDTdnGXQEuoXK4ag24AsemwQTH3Yk0ilM6I2adnIG 7Txu4G8hgCF0QjUJ7po4bVxxPOdNDXpIPV0+IV7g6pMCJGzlyeHnAGoJlG0QZrdjXLcHHIy5u21v9 H355Ksvgs8OGKPZn2ePIOZNiDZkFxDlAPyDP29FF8rbS/xDbHhmnpg2CxgrQUNFsvxtP6zLVV7IYf Rb8HbokZERJW4xqAITxVyA==; Date: Sat, 16 Aug 2025 10:56:03 +0300 Message-Id: <86ectblmy4.fsf@gnu.org> From: Eli Zaretskii To: Spencer Baugh In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#79227: 30.1.90; run-with-timer should error if REPEAT is not a number or nil References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79227 Cc: 79227@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 12 Aug 2025 17:26:14 -0400 > From: Spencer Baugh via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > The docstring of run-with-timer says REPEAT must be a number or nil, but > it doesn't error if REPEAT is, for example, t. This is likely to happen > with run-with-idle-timer accepts REPEAT=t. Thanks, should be fixed now on the master branch. I don't understand your reference to run-with-idle-timer, though: for idle timers, it is perfectly valid to use REPEAT = t. Did you mean run-with-timer instead? From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 16 08:55:43 2025 Received: (at 79227) by debbugs.gnu.org; 16 Aug 2025 12:55:43 +0000 Received: from localhost ([127.0.0.1]:41580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unGRj-0000aU-2q for submit@debbugs.gnu.org; Sat, 16 Aug 2025 08:55:43 -0400 Received: from mxout1.mail.janestreet.com ([38.105.200.78]:45871) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unGRg-0000a3-1F for 79227@debbugs.gnu.org; Sat, 16 Aug 2025 08:55:40 -0400 Received: from mail-ej1-f72.google.com ([209.85.218.72]) by mxgoog2.mail.janestreet.com with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.98.2) id 1unGRa-00000003AOT-0bhD for 79227@debbugs.gnu.org; Sat, 16 Aug 2025 08:55:34 -0400 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-afcb78f55d1so202721166b.1 for <79227@debbugs.gnu.org>; Sat, 16 Aug 2025 05:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; t=1755348933; x=1755953733; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7NL9H0qauZE/kCosV78TUGtWwKYzESvAHywhXr+8+Cg=; b=MdvOeukj26dT8VOaI2CxuMKrrRRgQyjH7m913HhK/6yitwgCDUyv76UJ3Te/hLPeVR cqUIfK503A9HaPWlaO//j2BFiq0YGfxO8nzZG7oqt+VtC//fa72Q/m6DBbbJCAKaCL0M B96hQHBFtrzjJ34J6zVJ9/uu5MB+mIiWIsVjk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1755348934; bh=7NL9H0qauZE/kCosV78TUGtWwKYzESvAHywhXr+8+Cg=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=RiVpgDhq4muwWzV6jx9gKBK6/D1Q00P9lWSZWuIN69wwv3pibChbtFkHvDxDNcNlU PF19Gf9ZeRj/4t+M+23QFFq9Y/rQ4+si7l5lmxDgSR23+GJ03SJnlXLph4w1M83Lkr ebeYvtZaHhojHXnBIsjszHIKwoCwYe33kbi16zYnOsncS/6xiAkvRBi/ZkTUHaKp75 3oxIRaL6huaUAgMnOiOfWXoMmwmjxEkLVr4yAnBocLZPrXKjg0NF1aYCyrpbJlczLr +ZbVPZnZ3Ru4uwrcN8bMLAmRDTVrQI3MZ+rN0KQfSMMTtopw9grHVjPqNEqxYr7U45 7L7dDWptXDXGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755348933; x=1755953733; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7NL9H0qauZE/kCosV78TUGtWwKYzESvAHywhXr+8+Cg=; b=XnSisxkCZFlM4KrTGcf2tkTPDU6Bdrv1SiH9rKcbhztFC8wHbv6I/I97rfrjHUy/fR 3tKnXTppqrP8rZbLMrEVhCQ96O9wjv5Dt4IS6yLrch8TlQ8SMJn3eGrhzU8RqgrwGvsA Gn8Q+ekpg+4wC9qsC6zrUOdy9owC0GCJKKJbKk2Abkj8VHN2lgREvtqmORXl/6yaQmaW XX+6SmVjBmTaSgXGkoY9JjP4hkt1hXgwrHxZoBK9Dh/RShp16juB8HgfyImp2jDRMw2A gwngItGS2xIKDQizQI7M1aPEKw0qJwHjMeAQse6IudbduoQKIzqt7XWcstxud9gfn51q NoPg== X-Gm-Message-State: AOJu0YxKYTtyM7fI1/foJeKVSmWLrklD2/fljHidLxmX4GWsHTOjD9HZ gNTQ593QI03YD3twBd5lW64wSMYifbFWVWMknbgzNpA8XV8z8Zx/fw6Qn0cz9CJo5P1zjvfslwZ 5o1Iw9HBM44KdsJhiS68PVtY2u7XmDJBW7tyOXGxgDteQvyR89+T239HBkPR+LmIOS85ewyAqeG M7H0wKIvsiXEF1Jkhjn/0aR6iH5f2MUg== X-Gm-Gg: ASbGncvKvupi/4Tn/7ZPB99UDUQ+isc1SSYg83mnLjeaboybjaPJnephFzw627wRMCS Y4BDnUcgom30U5/P6HMeEcuibNkYS+9bUiDVovLL3ZYw33253VHhMKxnxefyOW3vesdk0GdibGx OF5Vq8xi28TOkJeDCqNn4I X-Received: by 2002:a17:907:3e1a:b0:ae0:35fb:5c83 with SMTP id a640c23a62f3a-afceadd73e7mr225211566b.28.1755348933059; Sat, 16 Aug 2025 05:55:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNa2F19nAC27SQd0d0ymO1cjgV9v9zyS2g5MbJBMiJ8Nk7ZnRmg/l1lSZyIr7eCL9qButlJARiH+exkLzMjuk= X-Received: by 2002:a17:907:3e1a:b0:ae0:35fb:5c83 with SMTP id a640c23a62f3a-afceadd73e7mr225209166b.28.1755348932666; Sat, 16 Aug 2025 05:55:32 -0700 (PDT) MIME-Version: 1.0 References: <86ectblmy4.fsf@gnu.org> In-Reply-To: <86ectblmy4.fsf@gnu.org> From: Spencer Baugh Date: Sat, 16 Aug 2025 08:55:23 -0400 X-Gm-Features: Ac12FXz5l-qokce8ziiotkPll3Y6DxsDk8305Ktc6nPiesnWabpr-W_xz53Blg0 Message-ID: Subject: Re: bug#79227: 30.1.90; run-with-timer should error if REPEAT is not a number or nil To: Eli Zaretskii Content-Type: multipart/alternative; boundary="00000000000096bb9d063c7b0517" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79227 Cc: 79227@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --00000000000096bb9d063c7b0517 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Aug 16, 2025, 3:56=E2=80=AFAM Eli Zaretskii wrote: > > Date: Tue, 12 Aug 2025 17:26:14 -0400 > > From: Spencer Baugh via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > > > The docstring of run-with-timer says REPEAT must be a number or nil, bu= t > > it doesn't error if REPEAT is, for example, t. This is likely to happe= n > > with run-with-idle-timer accepts REPEAT=3Dt. > > Thanks, should be fixed now on the master branch. > > I don't understand your reference to run-with-idle-timer, though: for > idle timers, it is perfectly valid to use REPEAT =3D t. Did you mean > run-with-timer instead? > I mean when code previously used run-with-idle-timer and is changed to use run-with-timer instead, without looking closely at the arguments. > --00000000000096bb9d063c7b0517 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Aug 16, 2025, 3:56=E2=80= =AFAM Eli Zaretskii <eliz@gnu.org>= ; wrote:
> Date: Tue, 12 Aug 202= 5 17:26:14 -0400
> From:=C2=A0 Spencer Baugh via "Bug reports for GNU Emacs,
>=C2=A0 the Swiss army knife of text editors" <bug-gnu-emacs@= gnu.org>
>
>
> The docstring of run-with-timer says REPEAT must be a number or nil, b= ut
> it doesn't error if REPEAT is, for example, t.=C2=A0 This is likel= y to happen
> with run-with-idle-timer accepts REPEAT=3Dt.

Thanks, should be fixed now on the master branch.

I don't understand your reference to run-with-idle-timer, though: for idle timers, it is perfectly valid to use REPEAT =3D t.=C2=A0 Did you mean<= br> run-with-timer instead?

<= /div>
I mean when code previously used run-with-idle-timer= and is changed to use run-with-timer instead, without looking closely at t= he arguments.=C2=A0
--00000000000096bb9d063c7b0517-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 16 09:19:49 2025 Received: (at 79227-done) by debbugs.gnu.org; 16 Aug 2025 13:19:50 +0000 Received: from localhost ([127.0.0.1]:41629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unGp3-0001ma-KS for submit@debbugs.gnu.org; Sat, 16 Aug 2025 09:19:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40120) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unGp1-0001mH-F5 for 79227-done@debbugs.gnu.org; Sat, 16 Aug 2025 09:19:48 -0400 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 1unGov-0006V6-J3; Sat, 16 Aug 2025 09:19:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=jaBwQ09xzW/HN/sNzP1rvU866HAGWTJvR2ctjgWXKjg=; b=OZzECrvmZj5gwL57/Cx0 vlxB4ZyEp3tjy2qXhaRNMj16TWVc/g4e4cA0ZQFMiZcsmoD82/yEx32egvJzEgH+lNfCj8tOchOTa 6JZyzS4DIby4bwIKb/hUk+pxxg2Lnror2G3e9rFva6Xz+MTXmbYfh61LYswMpM2ta1+Ipsaljc/DI /zqozRi1QNg+Cb2e0tLrnYLMFrw3gW3NZoM+gzacWvrhkSju+znqDaFLEjqm1lBYkvMeHAERzn4ea VoRk7KaTdXpKlU+Iw2nu9+9wu/ySH2Vx9M2EVa4diIqiafxqmg9Zl6P0QeOsUocnXijBK3hYN01DC 2th2G1Yhiw2ftQ==; Date: Sat, 16 Aug 2025 16:19:39 +0300 Message-Id: <86ectbjtec.fsf@gnu.org> From: Eli Zaretskii To: Spencer Baugh In-Reply-To: (message from Spencer Baugh on Sat, 16 Aug 2025 08:55:23 -0400) Subject: Re: bug#79227: 30.1.90; run-with-timer should error if REPEAT is not a number or nil References: <86ectblmy4.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79227-done Cc: 79227-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Spencer Baugh > Date: Sat, 16 Aug 2025 08:55:23 -0400 > Cc: 79227@debbugs.gnu.org > > On Sat, Aug 16, 2025, 3:56 AM Eli Zaretskii wrote: > > > Date: Tue, 12 Aug 2025 17:26:14 -0400 > > From: Spencer Baugh via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > > > The docstring of run-with-timer says REPEAT must be a number or nil, but > > it doesn't error if REPEAT is, for example, t. This is likely to happen > > with run-with-idle-timer accepts REPEAT=t. > > Thanks, should be fixed now on the master branch. > > I don't understand your reference to run-with-idle-timer, though: for > idle timers, it is perfectly valid to use REPEAT = t. Did you mean > run-with-timer instead? > > I mean when code previously used run-with-idle-timer and is changed to use run-with-timer instead, without > looking closely at the arguments. OK, thanks. Then I guess we can close this bug now.