From unknown Sat Aug 16 22:01:11 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#4027 <4027@debbugs.gnu.org> To: bug#4027 <4027@debbugs.gnu.org> Subject: Status: 23.1; accept-process-output doesn't accept floating point for the seconds argument Reply-To: bug#4027 <4027@debbugs.gnu.org> Date: Sun, 17 Aug 2025 05:01:11 +0000 retitle 4027 23.1; accept-process-output doesn't accept floating point for = the seconds argument reassign 4027 emacs submitter 4027 Yee Keat Phuah severity 4027 normal thanks From ykphuah@gmail.com Mon Aug 3 18:36:23 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Aug 2009 01:36:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.3 required=4.0 tests=FOURLA,IMPRONONCABLE_1,MULTALT, MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n741aB18000454 for ; Mon, 3 Aug 2009 18:36:13 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MY8wl-0007Un-82 for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2009 21:36:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MY8wg-0007Sa-LB for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2009 21:36:10 -0400 Received: from [199.232.76.173] (port=34544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MY8wg-0007SU-Fl for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2009 21:36:06 -0400 Received: from mail-vw0-f182.google.com ([209.85.212.182]:58179) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MY8wg-0002EO-3Y for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2009 21:36:06 -0400 Received: by vws12 with SMTP id 12so1386423vws.24 for ; Mon, 03 Aug 2009 18:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=QzPseIRs4YhbzVL5J2Yxtwqeqz2p/7uU/+Fr/1fw7Ko=; b=DbyvJBeHqCXTIKzhLAjww7wXFbVs15FnrQfew9e8roJo7C2TjfP7I0QVSjRruizhPP sGpon4iybHiVekiwnYDeIKKZuwlm/ZF7vhRC8SiH4jxWOSQru1D6QhYmuuslptayApby V2w7ZxiohpOs+Mu0kWfoQx3hd1fKmJnbtIieQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uPYb3VAnZjpEgnfFKRW8VwOSzr93pg2MgU8PyhnuVSLr5BPYtit1mSUHgR3CJe16TN WgwmYHz+Q89YFDDuJYmz3ONGbWLk2VlTI4Zb/XMShbzRaLj/zL7E/9bqmYiLhTle/w/L /Vmaj84kyqhlhMX6NNBIzcn6U56Z6Nq2a6fyk= MIME-Version: 1.0 Received: by 10.220.77.17 with SMTP id e17mr6009504vck.3.1249349764618; Mon, 03 Aug 2009 18:36:04 -0700 (PDT) Date: Tue, 4 Aug 2009 09:36:04 +0800 Message-ID: <9caafe030908031836h33c110e0q7b3bbf9c234a3c6a@mail.gmail.com> Subject: 23.1; accept-process-output doesn't accept floating point for the seconds argument From: Yee Keat Phuah To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=0016e64eabf4eb9fcd047046e84e X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) --0016e64eabf4eb9fcd047046e84e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit When I do (accept-process-output fooproc 0.1 0 1), I get the following error (wrong-type-argument integerp 0.1) According to the help page for accept-process-output: [quote] Non-nil second arg seconds and third arg millisec are number of seconds and milliseconds to wait; return after that much time whether or not there is any subprocess output. If seconds is a floating point number, it specifies a fractional number of seconds to wait. The millisec argument is obsolete and should be avoided. [/unquote] The seconds argument should accept floating point, just as it does in emacs-22. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t nxhtml-global-minor-mode: t recentf-mode: t show-paren-mode: t global-auto-revert-mode: t desktop-save-mode: t swbuff-y-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent input: g - h a n d l e - b r e a k p o i n t SPC ( c a r SPC j d C-p ( l e t SPC ( ( o t h e r ) SPC ( p o p SPC j d i b u g - o t h e r s - s u s p e n d e d ) ) ) C-n C-x C-s p o p ) SPC ( c d r SPC p o p ) ) ) ) C-n C-p C-e C-x C-s C-x b D C-g C-g C-x M-f D o g C-g C-g C-x C-f j a v a / o r g / a n i m a l / D o g M-x j d e - l o a d - p r o C-] C-] C-] C-] C-] C-] C-] C-x 1 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-c C-c C-c C-h f a c c e p t - p r o C-g C-g C-g Recent messages: Symbol's function definition is void: jde-ecj-flymake-init Loading d:/cygwin-home/phuahy/prj.el (source)...done Loading d:/cygwin-home/phuahy/java/prj.el (source)...done Entering debugger... Quit call-interactively: No recursive edit is in progress [6 times] JDIbug connecting... localhost:6010 Entering debugger... Type C-x 4 C-o RET to restore the other window. Quit [2 times] Quit --0016e64eabf4eb9fcd047046e84e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When I do (accept-process-output fooproc 0.1 0 1), I get the following erro= r
(wrong-type-argument integerp 0.1)

According to the help page f= or accept-process-output:
[quote]
Non-nil second arg seconds and thir= d arg millisec are number of seconds
and milliseconds to wait; return after that much time whether or not
the= re is any subprocess output.=A0 If seconds is a floating point number,
i= t specifies a fractional number of seconds to wait.
The millisec argumen= t is obsolete and should be avoided.
[/unquote]

The seconds argument should accept floating point, just a= s it does in emacs-22.

In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)=A0of 2009-07-30 on SOFT-MJASON
Windowing system distributor `Microsof= t Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'

Important settings= :
=A0 value of $LC_ALL: nil
=A0 value of $LC_COLLATE: nil
=A0 valu= e of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil
=A0 value of $LC_M= ONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 value of $LC_TIME: nil
=A0 value of= $LANG: ENU
=A0 value of $XMODIFIERS: nil
=A0 locale-coding-system: c= p1252
=A0 default-enable-multibyte-characters: t

Major mode: Debu= gger

Minor modes in effect:
=A0 shell-dirtrack-mode: t
=A0 diff-auto-r= efine-mode: t
=A0 nxhtml-global-minor-mode: t
=A0 recentf-mode: t
= =A0 show-paren-mode: t
=A0 global-auto-revert-mode: t
=A0 desktop-sav= e-mode: t
=A0 swbuff-y-mode: t
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: t
= =A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
=A0 global-font-loc= k-mode: t
=A0 font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 globa= l-auto-composition-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-com= pression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: (on= ly . t)

Recent input:
g - h a n d l e - b r e a k p o i n t SPC (= c a r SPC
j d <backspace> C-p <return> <tab> ( l e t SPC ( (
o = t h e r ) <backspace> SPC ( p o p SPC j d i b u g
- o t h e r s -= s u s p e n d e d ) ) ) C-n <tab> C-x
C-s <backspace> p o = p ) SPC ( c d r SPC p o p ) ) )
) C-n C-p C-e <return> C-x C-s <f5> C-x b D C-g C-g
C-x M-f= D o g C-g C-g C-x C-f <M-backspace> <M-backspace>
j a v a = / o r g / a n i m a l / D o g <return> M-x
j d e - l o a d - p r = o <tab> <return> <f5> C-] C-]
C-] C-] C-] C-] C-] C-x 1 C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C= -n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n = C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p= C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-= p C-p C-p C-p
C-p C-c C-c C-c C-h f a c c e p t - p r o <tab> <= ;return>
<help-echo> <help-echo> <help-echo> <help-echo> <= ;help-echo>
<help-echo> <menu-bar> <help-menu> <= ;send-emacs-bug-report>
C-g C-g C-g <help-echo> <help-echo&= gt; <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> <help= -echo>
<help-echo> <help-echo> <help-echo> <hel= p-echo> <help-echo>
<help-echo> <help-echo> <he= lp-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Symbol's funct= ion definition is void: jde-ecj-flymake-init
Loading d:/cygwin-home/phua= hy/prj.el (source)...done
Loading d:/cygwin-home/phuahy/java/prj.el (sou= rce)...done
Entering debugger...
Quit
call-interactively: No recursive edit is in= progress [6 times]
JDIbug connecting... localhost:6010
Entering debu= gger...
Type C-x 4 C-o RET to restore the other window.
Quit [2 times= ]
Quit
--0016e64eabf4eb9fcd047046e84e-- From monnier@iro.umontreal.ca Thu Aug 6 11:45:40 2009 Received: (at 4027-done) by emacsbugs.donarmstrong.com; 6 Aug 2009 18:45:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n76IjcTk017058 for <4027-done@emacsbugs.donarmstrong.com>; Thu, 6 Aug 2009 11:45:39 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuEEAGTBekpFxL8W/2dsb2JhbACBUM9RhBgFhzQ X-IronPort-AV: E=Sophos;i="4.43,335,1246852800"; d="scan'208";a="43113228" Received: from 69-196-191-22.dsl.teksavvy.com (HELO ceviche.home) ([69.196.191.22]) by ironport2-out.teksavvy.com with ESMTP; 06 Aug 2009 14:45:33 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 12612B40CD; Thu, 6 Aug 2009 14:45:32 -0400 (EDT) From: Stefan Monnier To: Yee Keat Phuah Subject: Re: bug#4027: 23.1; accept-process-output doesn't accept floating point for the seconds argument Message-ID: References: <9caafe030908031836h33c110e0q7b3bbf9c234a3c6a@mail.gmail.com> Date: Thu, 06 Aug 2009 14:45:32 -0400 In-Reply-To: <9caafe030908031836h33c110e0q7b3bbf9c234a3c6a@mail.gmail.com> (Yee Keat Phuah's message of "Tue, 4 Aug 2009 09:36:04 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > When I do (accept-process-output fooproc 0.1 0 1), I get the following error > (wrong-type-argument integerp 0.1) Yes: if you use the obsolete and discouraged MILLISEC agument, then the SECONDS argument needs to be an integer. Stefan From unknown Sat Aug 16 22:01:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Sep 2009 14:24:11 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator