|
From: | Jan Djärv |
Subject: | Re: [PATCH] Re: redisplay-dont-pause is not mentioned in the Emacs manual |
Date: | Fri, 09 Jun 2006 18:22:02 +0200 |
User-agent: | Thunderbird 1.5.0.4 (Macintosh/20060530) |
Richard Stallman skrev:
A first step would be to provide more realistic settings for baud_rate in xterm.c, macterm.c, and w32term.c -- for example, 250000 (assuming that the connection is over a somewhat loaded half-duplex 10 MB LAN). And then only enable pre-emptive redisplay if baud-rate is < 200000. Is it possible to tell whether the X connection is local? (Do people still use remote X connections from distant machines to the local X server, nowadays?)
Yes, every day.:-)
What about the Linux console? Of course, we can put something in term/linux.el, but that will take effect even when going through the net. Is there a way to distinguish real local use from remote use?
Well, it is the same problem as finding out if a TCP/IP socket is connected to a remote system or not. You can get the remote peer address for the socket and compare that to the local address(es). If the X connection isn't a TCP/IP socket, then it is local (i.e. Unix socket).
Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |