GNU bug report logs - #4027
23.1; accept-process-output doesn't accept floating point for the seconds argument

Previous Next

Package: emacs;

Reported by: Yee Keat Phuah <ykphuah <at> gmail.com>

Date: Tue, 4 Aug 2009 01:45:06 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Yee Keat Phuah <ykphuah <at> gmail.com>
Subject: bug#4027 closed by Stefan Monnier <monnier <at> iro.umontreal.ca> (Re:
 bug#4027: 23.1; accept-process-output doesn't accept floating point for
 the seconds argument)
Date: Thu, 06 Aug 2009 18:55:05 +0000
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#4027: 23.1; accept-process-output doesn't accept floating point for the  seconds argument

It has been closed by Stefan Monnier <monnier <at> iro.umontreal.ca>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Stefan Monnier <monnier <at> iro.umontreal.ca> by
replying to this email.


-- 
4027: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4027
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Yee Keat Phuah <ykphuah <at> gmail.com>
Subject: Re: bug#4027: 23.1; accept-process-output doesn't accept floating point for the seconds argument
Date: Thu, 06 Aug 2009 14:45:32 -0400
> 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
[Message part 3 (message/rfc822, inline)]
From: Yee Keat Phuah <ykphuah <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; accept-process-output doesn't accept floating point for the 
	seconds argument
Date: Tue, 4 Aug 2009 09:36:04 +0800
[Message part 4 (text/plain, inline)]
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 <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> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

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
[Message part 5 (text/html, inline)]

This bug report was last modified 15 years and 350 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.