[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: process sentinel and kill-emacs
From: |
JD Smith |
Subject: |
Re: process sentinel and kill-emacs |
Date: |
Tue, 22 May 2007 13:53:31 -0700 |
On Tue, 2007-05-22 at 15:25 -0400, Chong Yidong wrote:
> JD Smith <address@hidden> writes:
>
> > On Tue, 2007-05-22 at 10:52 -0400, Richard Stallman wrote:
> >> Should a process's sentinel not run when kill-emacs is invoked with
> >> running processes? It appears the sentinel is not run (despite the
> >> prompting in save-buffer-kill-emacs: "Active processes exist; kill them
> >> and exit anyway?"). Any suggested workaround?
> >>
> >> Why is it vital to run sentinels when you are killing Emacs anyway?
> >
> > In my case, because the sentinel is writing out a comint input history
> > log, which you'd like to preserve even if the shell isn't cleanly
> > exited.
>
> Try putting something on kill-emacs-hook.
Thanks, that works (though it seems a bit inelegant, compared to calling
the process sentinel when kill-emacs kills the process).