[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/data.c [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/data.c [emacs-unicode-2] |
Date: |
Wed, 08 Dec 2004 00:48:33 -0500 |
Index: emacs/src/data.c
diff -c emacs/src/data.c:1.224.4.9 emacs/src/data.c:1.224.4.10
*** emacs/src/data.c:1.224.4.9 Fri Nov 12 02:52:58 2004
--- emacs/src/data.c Wed Dec 8 05:02:21 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/data.c [emacs-unicode-2],
Miles Bader <=