Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ll-xn!cullvax!drw From: drw@cullvax.UUCP (Dale Worley) Newsgroups: comp.emacs Subject: emacstool in gnu 18.41 - cheap solution Message-ID: <1208@cullvax.UUCP> Date: Fri, 22-May-87 13:45:08 EDT Article-I.D.: cullvax.1208 Posted: Fri May 22 13:45:08 1987 Date-Received: Sat, 23-May-87 16:22:27 EDT Organization: Cullinet Software, Westwood, MA, USA Lines: 22 I set up an "emacstool" in suntools by making a setup line that executes csh -c emacs-disable-suspend-emacs and having a line in .cshrc alias emacs-disable-suspend-emacs 'emacs -f disable-suspend-emacs' and having a function in .emacs (defun disable-suspend-emacs () (disable-command 'suspend-emacs)) The setup line makes a window that pops up and automatically runs a shell which runs emacs. All the rest of the stuff is to automatically disable the suspend-emacs (C-z) command, since suspending emacs leaves nobody listening to input from that window. (The csh is waiting for emacs to finish.) Typing C-x C-c causes emacs to exit, causing csh to exit, causing suntools to destroy the window. Dale -- Dale Worley Cullinet Software UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw ARPA: cullvax!drw@eddie.mit.edu Un*x (a generic name for a class of OS's) != Unix (AT&T's brand of such)