all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: JD Smith <jdsmith@as.arizona.edu>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: process sentinel and kill-emacs
Date: Tue, 22 May 2007 13:53:31 -0700	[thread overview]
Message-ID: <1179867211.7512.29.camel@turtle.as.arizona.edu> (raw)
In-Reply-To: <87bqgck6dl.fsf@stupidchicken.com>

On Tue, 2007-05-22 at 15:25 -0400, Chong Yidong wrote:
> JD Smith <jdsmith@as.arizona.edu> 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).

      reply	other threads:[~2007-05-22 20:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22  0:35 process sentinel and kill-emacs JD Smith
2007-05-22 14:52 ` Richard Stallman
2007-05-22 19:02   ` JD Smith
2007-05-22 19:25     ` Chong Yidong
2007-05-22 20:53       ` JD Smith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1179867211.7512.29.camel@turtle.as.arizona.edu \
    --to=jdsmith@as.arizona.edu \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.