all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
[parent not found: <mailman.3852.1249399507.2239.help-gnu-emacs@gnu.org>]
* Re: no questions when quitting
@ 2009-05-07  8:59 Anselm Helbig
  2009-08-04  5:51 ` Emacs terribly slow Maindoor
  0 siblings, 1 reply; 5+ messages in thread
From: Anselm Helbig @ 2009-05-07  8:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

> How can I force emacs to quit immediately after pressing C-x C-c
> without asking any questions.
> I would like all remaining modified buffers to be not saved and all
> running emacs subprocesses to be killed.
> 
> I read in info documentation that confirm-kill-emacs variable adjusts
> this behaviour.
> Unfortunately I don't know to which value I should set it to achieve
> what I want since nil value leads me to yes-or-no-p function.

`confirm-kill-emacs' does something different: you can have it ask for
confirmation even if no buffers need saving. You can achieve this by
binding C-x C-c to `kill-emacs' instead of `save-buffers-kill-emacs':

  (global-set-key (kbd "C-x C-c") 'kill-emacs)

BTW, `save-buffers-kill-emacs' takes a prefix argument in which case
it saves all pending changes automatically - which you said is not
what you want. 

However, you might want to change the way you work: if you need a
buffer with contents you don't want to save, just don't associate a
file with it! Creating sucha buffer is easy, just give switch-buffer
(C-x b) the name of a buffer that doesn't yet exist. You have to set
the major mode you want manually, though.

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


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

end of thread, other threads:[~2009-08-07  2:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4069.1249591599.2239.help-gnu-emacs@gnu.org>
2009-08-07  2:06 ` Emacs terribly slow Xah Lee
     [not found] <mailman.3852.1249399507.2239.help-gnu-emacs@gnu.org>
2009-08-05  7:39 ` Tim X
2009-05-07  8:59 no questions when quitting Anselm Helbig
2009-08-04  5:51 ` Emacs terribly slow Maindoor
2009-08-04 16:21   ` Lennart Borgman
2009-08-06  6:46     ` Maindoor

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.