[Top][All Lists]

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

Re: A few questions about desktop.el

From: David Kastrup
Subject: Re: A few questions about desktop.el
Date: Tue, 09 Aug 2005 11:31:22 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Juanma Barranquero <address@hidden> writes:

> On 8/9/05, Lars Hansen <address@hidden> wrote:
>> I guess it does not have to be automatically buffer local. But I am
>> not shure what the advantages/disadvantages of either choice are.
> Well, the reason `make-local-variable' and
> `make-variable-buffer-local' both exists is, I think, that in some
> circumstances the default value of the variable is gonna weight more
> than local changes (i.e, the local changes are going to be few and far
> between), and in other cases the variable is going to have frequent
> buffer-local modifications. Using the latter style when the former
> works is not "bad", but it's a bit wasteful.

I tend to use make-variable-buffer-local when a variable is tracking
some state of a buffer, such that it would always be an error if two
buffers shared such a variable.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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