Juanma Barranquero <[EMAIL PROTECTED]> writes: > On 8/9/05, Lars Hansen <[EMAIL PROTECTED]> 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel