unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: Saving Buffer
Date: 20 Jan 2003 19:15:19 -0500	[thread overview]
Message-ID: <5lwukz4aug.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: un0lvfdtu.fsf@hotpop.com

> (setq kill-emacs-query-functions
>       (cons (lambda () (yes-or-no-p "Really kill Emacs? "))
> 			kill-emacs-query-functions))
> This makes sure you don't kill Emacs when you didn't mean it. C-x C-c is
> too easy to hit.

`kill-emacs-query-functions' could actually contain a single function
rather than a list of functions.  For that reason and a bunch of others,
it is recommended to use

   (add-hook 'kill-emacs-query-functions
             (lambda () (yes-or-no-p "Really kill Emacs? ")))

instead.


        Stefan

  reply	other threads:[~2003-01-21  0:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-20 18:23 Saving Buffer CarlC
2003-01-20 18:30 ` Phillip Lord
2003-01-20 19:33   ` CarlC
2003-01-20 23:05 ` Galen Boyer
2003-01-21  0:15   ` Stefan Monnier <foo@acm.com> [this message]
2003-01-21  0:31   ` Henrik Enberg
2003-01-21  0:33     ` Henrik Enberg
2003-01-21 15:39 ` Kai Großjohann
2003-01-21 16:26   ` Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5lwukz4aug.fsf@rum.cs.yale.edu \
    --to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).