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

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

Re: Emacs ignores modified state of "untitled" buffer


From: Lennart Borgman
Subject: Re: Emacs ignores modified state of "untitled" buffer
Date: Fri, 21 May 2010 19:15:29 +0200

On Fri, May 21, 2010 at 3:17 PM, Kevin Rodgers
<kevin.d.rodgers@gmail.com> wrote:

>    ;; Protect against kill-emacs:
>    (setq buffer-offer-save t)

>> I guess changing the mode somehow overwrites the kill protections in
>> switch-to-new-buffer?
>
> Yes, via kill-all-local-variables.

You have to use

  (put 'buffer-offer-save 'permanent-local t)

to protect against kill-all-local-variables. I think it is a bug that
this is not already done in Emacs.



reply via email to

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