diff options
| author | Karoly Lorentey | 2004-12-08 22:20:27 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-12-08 22:20:27 +0000 |
| commit | fad2f6858075f49c4c8fd16f0535c287e3f14ac3 (patch) | |
| tree | 843a2ffe6caea6201877e3d2f1b6b954f47344b5 /src/data.c | |
| parent | 856dd47583918edd7987c13334703d3e7492d8f4 (diff) | |
| parent | b11e88237593ff7556d8535305e8f342e6b61d66 (diff) | |
| download | emacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.tar.gz emacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-714
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-271
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 7 |
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 | |||
| 1509 | a `let'-style binding made in this buffer is in effect, | 1509 | a `let'-style binding made in this buffer is in effect, |
| 1510 | does not make the variable buffer-local. Return VARIABLE. | 1510 | does not make the variable buffer-local. Return VARIABLE. |
| 1511 | 1511 | ||
| 1512 | In most cases it is better to use `make-local-variable', | ||
| 1513 | which makes a variable local in just one buffer. | ||
| 1514 | |||
| 1512 | The function `default-value' gets the default value and `set-default' sets it. */) | 1515 | The 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, | |||
| 1552 | Other buffers will continue to share a common default value. | 1555 | Other 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 |
| 1554 | VARIABLE previously had. If VARIABLE was void, it remains void.\) | 1557 | VARIABLE previously had. If VARIABLE was void, it remains void.\) |
| 1555 | See also `make-variable-buffer-local'. Return VARIABLE. | 1558 | Return VARIABLE. |
| 1556 | 1559 | ||
| 1557 | If the variable is already arranged to become local when set, | 1560 | If the variable is already arranged to become local when set, |
| 1558 | this function causes a local value to exist for this buffer, | 1561 | this 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) |
| 1563 | works. | 1566 | works. |
| 1564 | 1567 | ||
| 1568 | See also `make-variable-buffer-local'. | ||
| 1569 | |||
| 1565 | Do not use `make-local-variable' to make a hook variable buffer-local. | 1570 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 1566 | Instead, use `add-hook' and specify t for the LOCAL argument. */) | 1571 | Instead, use `add-hook' and specify t for the LOCAL argument. */) |
| 1567 | (variable) | 1572 | (variable) |