saving buffers options
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
saving buffers options         


Author: Rustom Mody
Date: Aug 22, 2008 04:57

Some buffers can be closed without any questions but for some --
typically file buffers -- if a changed buffer is (tried to be) closed,
a question is asked: Do you want save this...??

I want to get this question for python-mode, shell-mode etc. Is there
some option for this?

Thanks.
1 Comment
Re: saving buffers options         


Author: Rupert Swarbrick
Date: Aug 22, 2008 10:09

which seems to work here. Clearly you'll want to edit
savable-shell-modes and possibly change more than that... But there's a
quick start I think.

Rupert

"Rustom Mody" gmail.com> writes:
> Some buffers can be closed without any questions but for some --
> typically file buffers -- if a changed buffer is (tried to be) closed,
> a question is asked: Do you want save this...??
>
> I want to get this question for python-mode, shell-mode etc. Is there
> some option for this?
>
> Thanks.

Looking at C-h f kill-buffer, I see that kill-buffer-query-functions is
called on kill, but my emacs only has=20

(gnuserv-kill-buffer-query-function)

in there, so it can't be that which checks whether you want to save
dirty files...

However, I just hacked this up:
Show full article (1.11Kb)
no comments