jak@CS.BROWN.EDU (Jak Kirman) (11/27/88)
Does anyone know how (or if) I can catch signals sent to emacs and
execute an elisp function depending on the signal received?
I have a program which can be executed from a menu in a window-manager,
and sends a signal to all the emacs processes running. I use this to
exit from all my emacses quickly.
Currently I send HUP; the problem is that emacs then saves the modified
buffers into the auto-save-file-names. What I would like is to be able
to deal with this signal myself, for example to save the buffers before
exiting.
Is there any way to do this?
Thanks.
Jak Kirman
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CSnet : jak@cs.brown.edu BITNET : jak@browncs.BITNET
ARPA : jak%cs.brown.edu@relay.cs.net Phone : (401) 863 1831
UUCP : ...!{decvax,allegra,ihnp4}!brunix!jak
Snail : Apt 4, 86 Benevolent St, Providence, 02906 RI. Tel. (401) 272 6149
I like long walks, especially when they are taken by people who annoy me.
-- Fred Allen