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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4027 in the body.
You can then email your comments to 4027 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4027; Package emacs. (Tue, 04 Aug 2009 01:45:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yee Keat Phuah <ykphuah <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 04 Aug 2009 01:45:07 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

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 1 (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 2 (text/html, inline)]

Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Thu, 06 Aug 2009 18:55:05 GMT) Full text and rfc822 format available.

Notification sent to Yee Keat Phuah <ykphuah <at> gmail.com>:
bug acknowledged by developer. (Thu, 06 Aug 2009 18:55:05 GMT) Full text and rfc822 format available.

Message #10 received at 4027-done <at> emacsbugs.donarmstrong.com (full text, mbox):

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



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 04 Sep 2009 14:24:11 GMT) Full text and rfc822 format available.

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.