all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Keep losing work in non-file-visiting buffers
Date: Tue, 02 Dec 2003 16:42:31 -0700	[thread overview]
Message-ID: <3FCD2367.8030005@yahoo.com> (raw)
In-Reply-To: aj7zb.15975$lm1.128972@wards.force9.net

sebyte wrote:

>     Anyone know of a variable/method/function that will prompt you to 
> save your work in non-file-visiting buffers before you kill them or kill 
> your emacs session?

(setq-default buffer-offer-save t)	; for save-buffers-kill-emacs


(add-hook 'kill-buffer-query-functions	; for kill-buffer
           (lambda ()
             (or buffer-file-name
                 (not (buffer-modified-p))
                 (yes-or-no-p (format "Buffer %s modified; kill anyway? "
                                      (buffer-name))))))

-- 
Kevin Rodgers

  reply	other threads:[~2003-12-02 23:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-02 21:15 Keep losing work in non-file-visiting buffers sebyte
2003-12-02 23:42 ` Kevin Rodgers [this message]
2003-12-03 17:34   ` sebyte
2003-12-03 22:09   ` sebyte
2003-12-03 23:18     ` Kevin Rodgers
2003-12-04 21:15       ` sebyte
2003-12-04 23:14       ` sebyte
2003-12-05 18:26         ` Kevin Rodgers
2003-12-04 16:56 ` Johan Bockgård
2003-12-04 23:29 ` Stefan Monnier
2003-12-04 23:35   ` Jesper Harder
2003-12-05  0:05     ` Stefan Monnier
2003-12-05  9:37       ` Jesper Harder

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

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

  git send-email \
    --in-reply-to=3FCD2367.8030005@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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.
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.