aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-02 23:35:42 +0000
committerRichard M. Stallman2004-12-02 23:35:42 +0000
commita99086536540778739279eff14cd4f01d0b9536c (patch)
treea81de2ef3d040d9efa93a8319421482009d08c02 /src
parent0c2cb7536e169fc375d94ff1c1b93c6733f4e1da (diff)
downloademacs-a99086536540778739279eff14cd4f01d0b9536c.tar.gz
emacs-a99086536540778739279eff14cd4f01d0b9536c.zip
(Fmake_variable_buffer_local): Doc fix.
(Fmake_local_variable): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/data.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index 2e3378cf319..afbca80181d 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1509,6 +1509,9 @@ Note that binding the variable with `let', or setting it while
1509a `let'-style binding made in this buffer is in effect, 1509a `let'-style binding made in this buffer is in effect,
1510does not make the variable buffer-local. Return VARIABLE. 1510does not make the variable buffer-local. Return VARIABLE.
1511 1511
1512In most cases it is better to use `make-local-variable',
1513which makes a variable local in just one buffer.
1514
1512The function `default-value' gets the default value and `set-default' sets it. */) 1515The function `default-value' gets the default value and `set-default' sets it. */)
1513 (variable) 1516 (variable)
1514 register Lisp_Object variable; 1517 register Lisp_Object variable;
@@ -1552,7 +1555,7 @@ DEFUN ("make-local-variable", Fmake_local_variable, Smake_local_variable,
1552Other buffers will continue to share a common default value. 1555Other buffers will continue to share a common default value.
1553\(The buffer-local value of VARIABLE starts out as the same value 1556\(The buffer-local value of VARIABLE starts out as the same value
1554VARIABLE previously had. If VARIABLE was void, it remains void.\) 1557VARIABLE previously had. If VARIABLE was void, it remains void.\)
1555See also `make-variable-buffer-local'. Return VARIABLE. 1558Return VARIABLE.
1556 1559
1557If the variable is already arranged to become local when set, 1560If the variable is already arranged to become local when set,
1558this function causes a local value to exist for this buffer, 1561this function causes a local value to exist for this buffer,
@@ -1562,6 +1565,8 @@ This function returns VARIABLE, and therefore
1562 (set (make-local-variable 'VARIABLE) VALUE-EXP) 1565 (set (make-local-variable 'VARIABLE) VALUE-EXP)
1563works. 1566works.
1564 1567
1568See also `make-variable-buffer-local'.
1569
1565Do not use `make-local-variable' to make a hook variable buffer-local. 1570Do not use `make-local-variable' to make a hook variable buffer-local.
1566Instead, use `add-hook' and specify t for the LOCAL argument. */) 1571Instead, use `add-hook' and specify t for the LOCAL argument. */)
1567 (variable) 1572 (variable)