[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.
- RE: Emacs ignores modified state of "untitled" buffer, (continued)
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/20
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer,
Lennart Borgman <=
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Lennart Borgman, 2010/05/21
- RE: Emacs ignores modified state of "untitled" buffer, Drew Adams, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/28
- RE: Emacs ignores modified state of "untitled" buffer, Drew Adams, 2010/05/28
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/28