Article View: gnu.emacs.bug
Article #1203Catching signals from within emacs
From: Jak Kirman
Date: Sun, 27 Nov 1988 13:41
Date: Sun, 27 Nov 1988 13:41
25 lines
1488 bytes
1488 bytes
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
Technical Details
Message-ID:
<8811271341.AA03022@zaphod.cs.brown.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!CS.BROWN.EDU!jakShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!CS.BROWN.EDU!jak From: jak@CS.BROWN.EDU (Jak Kirman) Newsgroups: gnu.emacs.bug Subject: Catching signals from within emacs Message-ID: <8811271341.AA03022@zaphod.cs.brown.edu> Date: 27 Nov 88 13:41:25 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 25