[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/data.c
From: |
Richard M . Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/src/data.c |
Date: |
Thu, 02 Dec 2004 18:41:53 -0500 |
Index: emacs/src/data.c
diff -c emacs/src/data.c:1.245 emacs/src/data.c:1.246
*** emacs/src/data.c:1.245 Tue Nov 9 13:19:11 2004
--- emacs/src/data.c Thu Dec 2 23:35:42 2004
***************
*** 1509,1514 ****
--- 1509,1517 ----
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,1558 ****
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.
If the variable is already arranged to become local when set,
this function causes a local value to exist for this buffer,
--- 1555,1561 ----
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.\)
! 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,1567 ****
--- 1565,1572 ----
(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)
- [Emacs-diffs] Changes to emacs/src/data.c,
Richard M . Stallman <=