[Top][All Lists]

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

Re: buffer-offer-save and *scratch*

From: Kevin Rodgers
Subject: Re: buffer-offer-save and *scratch*
Date: Tue, 12 Apr 2005 11:06:44 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Luc Teirlinck wrote:
> That is because at startup, Emacs sets the major mode of *scratch*
> according to `initial-major-mode', _after_ your .emacs is read.
> Changing major modes kills all local variables that are not
> permanently local, including `buffer-offer-save'.
> But `buffer-offer-save' should be permanently local.  Whether you want
> to be offered to save the buffer or not has nothing to do with the
> major mode.

So the fix is to put this in files.el, right after the defvar and
make-variable-buffer-local forms:

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

and the workaround is to put it in site-start.el -- right?  I can
confirm that workaround solves my problem.

Kevin Rodgers

reply via email to

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