[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Saving Buffer
From: |
Phillip Lord |
Subject: |
Re: Saving Buffer |
Date: |
20 Jan 2003 18:30:07 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93 |
>>>>> "CarlC" == CarlC <carlc@snowbd.com> writes:
CarlC> The function save-buffers-kill-emacs goes through each
CarlC> modified buffer with a file assocation and asks "Save file
CarlC> /home/carl/trash? (y, n, !, ., q, C-r or C-h)". Is this
CarlC> functionality available for a single (current) buffer? I
CarlC> cannot find a command similar to this. I just want to say
CarlC> kill-buffer, but ask to save if it is modified. I don't want
CarlC> it to kill-emacs.
This should be the default behaviour. Certainly if I do kill-buffer,
then I get "Buffer blah.txt modified: kill anyway?"
This doesn't happen if the buffer is not associated with a file. So
*scratch* can be killed in this way. If you want to stop this, you'll
need to add a function to "kill-buffer-hook" to query the user first.
Phil