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

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

Re: Keep losing work in non-file-visiting buffers


From: Kevin Rodgers
Subject: Re: Keep losing work in non-file-visiting buffers
Date: Wed, 03 Dec 2003 16:18:19 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

sebyte wrote:

actually works too well! am forever being prompted re: buffers that *should* be killed without asking, eg, info, help, gnus buffers etc. oh well, can't have everything your own way i suppose.

Since *info* and *Help* buffers are never(?) marked as modified, I guess

it's actually save-buffers-kill-emacs (C-x C-c) that's holding you up, not
kill-buffer (C-x k).  And that means it's buffer-offer-save that's at fault,
not kill-buffer-query-functions.


So maybe you just want to turn on buffer-offer-save for buffers you explictly
create, as with switch-to-buffer (C-x b), instead of buffers Emacs creates for
you:

(defadvice switch-to-buffer (after buffer-offer-save activate)
  "Set `buffer-offer-save' when called interactively."
  (and (interactive-p)
       (setq buffer-offer-save t))) ; automatically local in all buffers

--
Kevin Rodgers



reply via email to

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