4 May 2007 10:56
accept-process-output incompatible change in CVS Emacs: patch included
Per Cederqvist <ceder <at> ingate.com>
2007-05-04 08:56:47 GMT
2007-05-04 08:56:47 GMT
This change in the upcoming Emacs 22 breaks some code: > 2006-03-22 Kim F. Storm <storm <at> cua.dk> > > * process.c (Faccept_process_output): Fix to comply with lisp > reference. Change arg "timeout" to "seconds" and allow both > integer and float value. Change arg "timeout-msec" to "millisec" > and interpret" as milliseconds rather than microseconds. Fix doc > string accordingly. I enclose a patch that makes accept-process-output backwards-compatible with Emacs 21. One application I'm running now runs very slowly, since its carefully tuned timeoutes are multiplied by 1000. The third argument of the accept-process-output function used to be a number of microseconds. Apparently whoever wrote the GNU Emacs Lisp Reference Manual mistook "msec" to mean milliseconds. But the built-in documentation in Emacs 21.3 clearly states that the argument is in milliseconds: > accept-process-output is a built-in function. > (accept-process-output &optional PROCESS TIMEOUT TIMEOUT-MSECS) > > Allow any pending output from subprocesses to be read by Emacs. > It is read into the process' buffers or given to their filter functions. > Non-nil arg PROCESS means do not return until some output has been received > from PROCESS. > Non-nil second arg TIMEOUT and third arg TIMEOUT-MSECS are number of(Continue reading)
RSS Feed