[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/data.c [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/data.c [lexbind] |
Date: |
Wed, 08 Dec 2004 18:57:15 -0500 |
Index: emacs/src/data.c
diff -c emacs/src/data.c:1.210.2.17 emacs/src/data.c:1.210.2.18
*** emacs/src/data.c:1.210.2.17 Fri Nov 12 04:21:17 2004
--- emacs/src/data.c Wed Dec 8 23:36:25 2004
***************
*** 1520,1525 ****
--- 1520,1528 ----
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;
***************
*** 1563,1569 ****
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,
--- 1566,1572 ----
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,
***************
*** 1573,1578 ****
--- 1576,1583 ----
(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 [lexbind],
Miles Bader <=