aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorMiles Bader <[email protected]>2004-12-08 05:02:30 +0000
committerMiles Bader <[email protected]>2004-12-08 05:02:30 +0000
commit000fc2b1fad05ccd9e6cdb5810febb091f4b5738 (patch)
tree808f1473847c7c44bc8b28d8edfa086ec25035d1 /src/data.c
parent5bc63b073c3c75dbfab1f14423f01cc615e26eeb (diff)
parentad136a7c3b310fa7240dd2adf62f23b454782bd0 (diff)
Revision: [email protected]/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0 Patches applied: * [email protected]/emacs--cvs-trunk--0--patch-709 Update from CVS: src/indent.c (Fvertical_motion): Fix last change. * [email protected]/emacs--cvs-trunk--0--patch-710 - [email protected]/emacs--cvs-trunk--0--patch-715 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-716 Merge from gnus--rel--5.10 * [email protected]/gnus--rel--5.10--patch-74 Update from CVS
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index 7f68cc864d..0439d5763b 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1509,6 +1509,9 @@ Note that binding the variable with `let', or setting it while
a `let'-style binding made in this buffer is in effect,
does not make the variable buffer-local. Return VARIABLE.
+In most cases it is better to use `make-local-variable',
+which makes a variable local in just one buffer.
+
The function `default-value' gets the default value and `set-default' sets it. */)
(variable)
register Lisp_Object variable;
@@ -1552,7 +1555,7 @@ DEFUN ("make-local-variable", Fmake_local_variable, Smake_local_variable,
Other buffers will continue to share a common default value.
\(The buffer-local value of VARIABLE starts out as the same value
VARIABLE previously had. If VARIABLE was void, it remains void.\)
-See also `make-variable-buffer-local'. Return VARIABLE.
+Return VARIABLE.
If the variable is already arranged to become local when set,
this function causes a local value to exist for this buffer,
@@ -1562,6 +1565,8 @@ This function returns VARIABLE, and therefore
(set (make-local-variable 'VARIABLE) VALUE-EXP)
works.
+See also `make-variable-buffer-local'.
+
Do not use `make-local-variable' to make a hook variable buffer-local.
Instead, use `add-hook' and specify t for the LOCAL argument. */)
(variable)