unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4027: 23.1; accept-process-output doesn't accept floating point for the seconds argument
@ 2009-08-04  1:36 ` Yee Keat Phuah
  2009-08-06 18:55   ` bug#4027: marked as done (23.1; accept-process-output doesn't accept floating point for the seconds argument) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Yee Keat Phuah @ 2009-08-04  1:36 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 3362 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3974 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#4027: marked as done (23.1; accept-process-output doesn't accept floating point for the  seconds argument)
  2009-08-04  1:36 ` bug#4027: 23.1; accept-process-output doesn't accept floating point for the seconds argument Yee Keat Phuah
@ 2009-08-06 18:55   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2009-08-06 18:55 UTC (permalink / raw)
  To: Stefan Monnier

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]


Your message dated Thu, 06 Aug 2009 14:45:32 -0400
with message-id <jwvbpms236l.fsf-monnier+emacsbugreports@gnu.org>
and subject line Re: bug#4027: 23.1; accept-process-output doesn't accept floating point for the seconds argument
has caused the Emacs bug report #4027,
regarding 23.1; accept-process-output doesn't accept floating point for the  seconds argument
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4027: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4027
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 10617 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 3362 bytes --]

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

[-- Attachment #2.1.2: Type: text/html, Size: 3974 bytes --]

[-- Attachment #3: Type: message/rfc822, Size: 1988 bytes --]

From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Yee Keat Phuah <ykphuah@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
Message-ID: <jwvbpms236l.fsf-monnier+emacsbugreports@gnu.org>

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-06 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <jwvbpms236l.fsf-monnier+emacsbugreports@gnu.org>
2009-08-04  1:36 ` bug#4027: 23.1; accept-process-output doesn't accept floating point for the seconds argument Yee Keat Phuah
2009-08-06 18:55   ` bug#4027: marked as done (23.1; accept-process-output doesn't accept floating point for the seconds argument) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).