[comp.emacs] Quick Exit Function?

martin@boa.gatech.edu (Martin Robert Frank) (11/10/90)

Provided you worked with several buffers and files exiting Emacs with the
standard C-x C-c sequence will result in numerous questions of the kind:
(1) Save buffer... ?
(2) Subprocesses exist - kill them?

Is there an Emacs function which will automatically save all modified buffers
and kill all subprocesses?
--
Martin R. Frank    martin@cc.gatech.edu   College of Computing, Georgia Tech

manderso@spain.mpr.ca (Mark Anderson) (11/10/90)

In article <389@mephisto.edu>
martin@boa.gatech.edu (Martin Robert Frank) writes:
>Is there an Emacs function which will automatically save all modified buffers
>and kill all subprocesses?

(defun kill-emacs-without-query ()
  (interactive)
  (mapcar 'process-kill-without-query (process-list))
  (save-buffers-kill-emacs t))
(define-key ctl-x-map "\C-c" 'kill-emacs-without-query)
-- 
Mark Anderson
manderso@mprgate.mpr.ca