help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protecting buffers which aren't visiting files


From: Arnaldo Mandel
Subject: Re: Protecting buffers which aren't visiting files
Date: Mon, 25 Oct 2010 14:24:13 -0200

On Sun, Oct 24, 2010 at 10:01 AM, Otto Maddox <ottomaddox@fastmail.fm> wrote:
> I use a lot of scratch buffers (which don't visit files), and I've lost
> a lot of work due to accidentally quitting Emacs or killing those
> buffers, because Emacs doesn't ask for confirmation. Is there a way of
> configuring Emacs to treat buffers which don't visit files the same way
> as file-visiting buffers, for this situation?

There are lots of ways of implementing buffer-saving policies; quite
likely you don't want all
scratch buffers to ask to be saved (as per the buffer-offer-save local
variable).
Look up the command save-some-buffers in the elisp manual for the
route to solving your problem.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]