Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!venera.isi.edu!raveling From: raveling@venera.isi.edu (Paul Raveling) Newsgroups: gnu.emacs Subject: Re: Input remapping, Part 6 of 8: bobcat.el Message-ID: <8792@venera.isi.edu> Date: 28 Jun 89 21:40:42 GMT References: <8723@venera.isi.edu> Reply-To: raveling@venera.isi.edu.UUCP (Paul Raveling) Distribution: gnu Organization: Information Sciences Institute, Univ. of So. California Lines: 32 If anyone adopts the bobcat.el changes I suggested for choosing keyboard or mouse setup files, one more change would be appropriate: Avoid executing X-dependent setup if emacs is using a terminal of some sort rather than an X window. Yesterday we discovered that x-rebind-keysym blows up if someone running SunView elsewhere does a remote login via the net and uses this setup. In general it seems like a good idea to avoid all X-dependent setup in a case such as this. Here's an updated copy of the added code in bobcat.el that dodges this bullet: (if window-system ; Set up mouse & kbd ONLY if using window sys [X11] (progn (if (file-exists-p "~/.emacs_kbd") (load "~/.emacs_kbd") (load "term/default_kbd")) (if (file-exists-p "~/.emacs_mouse") (load "~/.emacs_mouse") (load "term/default_mouse")) )) ---------------- Paul Raveling Raveling@isi.edu