From: "Per Cederqvist" <ceder@ingate.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: accept-process-output incompatible change in CVS Emacs: patch included
Date: Sat, 5 May 2007 10:42:43 +0200 [thread overview]
Message-ID: <9b83c8160705050142o10205741pf4a6c20d3553768d@mail.gmail.com> (raw)
In-Reply-To: <m3ps5gkym4.fsf@kfs-l.imdomain.dk>
On 5/5/07, Kim F. Storm <no-spam@cua.dk> wrote:
> Per Cederqvist <ceder@ingate.com> writes:
>
> > This change in the upcoming Emacs 22 breaks some code:
> >
> >> 2006-03-22 Kim F. Storm <storm@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.
>
> Please see:
>
> http://lists.gnu.org/archive/html/emacs-devel/2006-03/msg00937.html
rms has already installed my patch, so I guess Gnus will have to be
fixed. I was not aware that XEmacs used milliseconds. Maybe the
documentation should be updated to tell everybody to use floating
point instead, as the interpretation of the msec argument varies.
> > 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.
>
> Well, other code believing the lisp ref, and was broken by the old
> behaviour.
>
> So just reverting the change is no good at this time.
If the millisecond interpretation is once again installed, please make
the code raise an overflow error if a value larger than 1000 is
supplied. This way, code that relies on the old behaviour will not
silently be slow, but instead raise an error so that the problem is
found and can be fixed.
> What application is that?
A client to the LysKOM system, called lyskom-elisp-client. Info about
the entire system is available from
http://www.lysator.liu.se/lyskom/index-en.html, and the client itself
can be found in ftp://ftp.lysator.liu.se/pub/lyskom/elisp-client/.
> > If, for some reason, my patch is unacceptable, please
> > mention this as an incompatible change in the NEWS file.
>
> This is a good point.
>
> --
> Kim F. Storm http://www.cua.dk
/ceder
next prev parent reply other threads:[~2007-05-05 8:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-04 8:56 accept-process-output incompatible change in CVS Emacs: patch included Per Cederqvist
2007-05-04 22:33 ` Kim F. Storm
2007-05-05 8:42 ` Per Cederqvist [this message]
2007-05-05 8:57 ` Eli Zaretskii
2007-05-05 23:19 ` Richard Stallman
2007-05-05 23:19 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b83c8160705050142o10205741pf4a6c20d3553768d@mail.gmail.com \
--to=ceder@ingate.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).