Function: edt-quit
edt-quit is an interactive and byte-compiled function defined in
edt.el.gz.
Signature
(edt-quit)
Documentation
Quit Emacs without saving buffer modifications.
Warn user that modifications will be lost.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; QUIT
;;;
(defun edt-quit ()
"Quit Emacs without saving buffer modifications.
Warn user that modifications will be lost."
(interactive)
(let ((list (buffer-list))
(working t))
(while (and list working)
(let ((buffer (car list)))
(if (and (buffer-file-name buffer) (buffer-modified-p buffer))
(if (edt-y-or-n-p
"Modifications will not be saved, continue quitting? ")
(kill-emacs)
(setq working nil)))
(setq list (cdr list))))
(if working (kill-emacs))))