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

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

Re: Does erase-buffer reset buffer-local variables to nil?


From: Thorsten Jolitz
Subject: Re: Does erase-buffer reset buffer-local variables to nil?
Date: Thu, 28 Feb 2013 01:51:27 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux)

Thorsten Jolitz <tjolitz@gmail.com> writes:

> I face the problem that I set a buffer-local variable in one function,
> and find its value to be nil later on in another function. In between,
> 'revert-buffer' is called with a revert-buffer-function that uses
> erase-buffer.

Following up to my own post: 

I figured out that its not 'erase-buffer' that is the culprit, but a
temporary change of major-mode, because by convention:

,-------------------------------------------------------------------------
| The major mode command should start by calling kill-all-local-variables...
`-------------------------------------------------------------------------

-- 
cheers,
Thorsten




reply via email to

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