:
kaydedebilir-tamponları-kill-emacs işlevini tavsiye olabilir:
(defadvice save-buffers-kill-emacs (around no-y-or-n activate)
(flet ((yes-or-no-p (&rest args) t)
(y-or-n-p (&rest args) t))
ad-do-it))
bunu yapmanın dezavantajı da wh (emacs aktif süreçlerde denetimini atlamak edecektir ich dosya tampon kontrolünden sonra yapılır). Yani, kendi versiyonunu yazmak için en güvenli yöntem olacaktır
(defun my-save-buffers-kill-emacs (&optional arg)
"Offer to save each buffer(once only), then kill this Emacs process.
With prefix ARG, silently save all file-visiting buffers, then kill."
(interactive "P")
(save-some-buffers arg t)
(and (or (not (fboundp 'process-list))
;; process-list is not defined on MSDOS.
(let ((processes (process-list))
active)
(while processes
(and (memq (process-status (car processes)) '(run stop open listen))
(process-query-on-exit-flag (car processes))
(setq active t))
(setq processes (cdr processes)))
(or (not active)
(progn (list-processes t)
(yes-or-no-p "Active processes exist; kill them and exit anyway? ")))))
;; Query the user for other things, perhaps.
(run-hook-with-args-until-failure 'kill-emacs-query-functions)
(or (null confirm-kill-emacs)
(funcall confirm-kill-emacs "Really exit Emacs? "))
(kill-emacs)))
save-tamponların-emacs-öldürmek ve ya bağlayıcı standart Cx Cc anahtarına bağlamak:
(global-set-key (kbd "C-x C-c") 'my-save-buffers-kill-emacs)
veya FSet için "save-tamponları-emacs'ı öldürmek":
(fset 'save-buffers-kill-emacs 'my-save-buffers-kill-emacs)
ait
olası yinelenen [olun Emacs sormasın "Aktif süreç devam etmektedir; onları öldürmek ve yine çıkmak"] (http://stackoverflow.com/questions/2706527/ Yapmak -emacs-stop-soran-aktif-işlemleri-var-öldürmek-onları-ve-çıkış-neyse) –
http://stackoverflow.com/a/10780124/539797 nasıl yapılır. – yPhil