raveling@venera.isi.edu (Paul Raveling) (06/23/89)
HP/ISI input remapping files: Part 6 of 8 These are differences relative to the original lisp/term/bobcat.el in GNU emacs version 18.54. Changes were to choose and load keyboard and mouse customization either from the user's home directory or from the lisp/term directory. This provides a way for ambitious users to supply whatever setup they please in place of the standard setup. Motivation for this comes from the fact that the standard setup files are big enough to be slow to load. This also makes it desirable to use byte-compiled files for the standard defaults. ------------------------------ Cut Here -------------------------------- 11a12,22 > > > ; Local standard customization for X11 (Paul Raveling/ISI): > > (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"))
raveling@venera.isi.edu (Paul Raveling) (06/29/89)
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