changeset 13166:c61ffdb6d9df

Explain when to use make-variable-buffer-local.
author Richard M. Stallman <rms@gnu.org>
date Mon, 09 Oct 1995 19:39:45 +0000
parents e5431229a09f
children c378e215f4d0
files lispref/variables.texi
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/variables.texi	Mon Oct 09 18:00:54 1995 +0000
+++ b/lispref/variables.texi	Mon Oct 09 19:39:45 1995 +0000
@@ -1213,6 +1213,15 @@
 local to the current buffer at the time.
 
 The value returned is @var{variable}.
+
+@strong{Note:} It is a mistake to use @code{make-variable-buffer-local}
+for user-option variables, simply because users @emph{might} want to
+customize them differently in different buffers.  Users can make any
+variable local, when they wish to.
+
+The main use of @code{make-variable-buffer-local} is when a variable is
+used for internal purposes, and the Lisp program depends on having
+separate values in separate buffers.
 @end deffn
 
 @defun local-variable-p variable &optional buffer