unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* kill active process on exit
@ 2010-12-21 17:23 Rajinder Yadav
  2010-12-22  3:56 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Rajinder Yadav @ 2010-12-21 17:23 UTC (permalink / raw)
  To: emacs-help

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.

i came across this:

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

-- 
Kind Regards,
Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely

GNU/Linux: 2.6.35-22-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kill active process on exit
  2010-12-21 17:23 kill active process on exit Rajinder Yadav
@ 2010-12-22  3:56 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2010-12-22  3:56 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-22  3:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 17:23 kill active process on exit Rajinder Yadav
2010-12-22  3:56 ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).