all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: kill active process on exit
Date: Tue, 21 Dec 2010 20:56:22 -0700	[thread overview]
Message-ID: <ierst7$th8$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTinHNjV=41j+-gZQcOMFS0jKSDO2LBXTpp7BDrB0@mail.gmail.com>

On 12/21/10 10:23 AM, Rajinder Yadav wrote:
> Is the a general accepted way to kill an active process on exit
> without being asked? i usually open a command shell and don't want to
> be asked this question.

Specific to M-x shell:

(add-hook 'shell-mode-hook
	  (lambda ()
	    (set-process-query-on-exit-flag (get-buffer-process
					     (current-buffer))
					    nil)))

Easily generalized from shell-mode-hook to comint-exec-hook, which covers
most interactive processes.

> i came across this:
>
> http://xavier.robin.name/blog/2010/05/25/emacs-ess-active-process-exist-kill-them-and-exit-anyway
>

-- 
Kevin Rodgers
Denver, Colorado, USA




      reply	other threads:[~2010-12-22  3:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 17:23 kill active process on exit Rajinder Yadav
2010-12-22  3:56 ` Kevin Rodgers [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='ierst7$th8$1@dough.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@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.