> 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). You can do that with an X connection, I guess, since Emacs has the connection. What would it do for a tty? Look at the tty name to see if it is a pty? And how do you decide how fast a remote connection is, nowadays? Lots of them go to a machine on the same local net, and that would be so fast it might as well be the same machine (as far as Emacs redisplay decisions are concerned). We could just treat all terminals as fast unless the user specifies a slower speed. Is there some way of measuring the speed of the connection? With X, perhaps there is: do XSync and see how long it takes. Any other ideas? _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug