GNU bug report logs -
#14512
buffer-offer-save does not affect kill-buffer
Previous Next
Reported by: E Sabof <esabof <at> gmail.com>
Date: Thu, 30 May 2013 13:21:01 UTC
Severity: normal
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 14512 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I no longer use it much, since I create/kill temporary buffers quite often.
But this is the default behavior in most programs, and I suspect many
people would want to change it. My 1 year ago self included.
On second thought, there might be a case for prompting for save only on
emacs exit, but I think it would be more natural if there was a separate
switch to do that, and it was responsible for all
(and (buffer-modified-p)
(or (buffer-file-name)
buffer-offer-save))
buffers.
On a related note, I get the impression that the prompt being hard coded is
a remnant from times when kill-buffer-query-functions didn't exist.
Evgeni
On Fri, May 31, 2013 at 12:09 AM, Glenn Morris <rgm <at> gnu.org> wrote:
>
> If you want Emacs to
>
> 1) offer to save a buffer on exit
> 2) offer to save a buffer on C-x k
>
> then why not simply make that buffer visit a file?
>
> Because you also probably want
>
> 3) some kind of auto-save in case your computer dies while you are
> editing the buffer
>
[Message part 2 (text/html, inline)]
This bug report was last modified 3 years and 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.