diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c index bdd56bf0f62..ca896897ddf 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1551,8 +1551,12 @@ Note that binding the variable with `let', or setting it while | |||
| 1551 | a `let'-style binding made in this buffer is in effect, | 1551 | a `let'-style binding made in this buffer is in effect, |
| 1552 | does not make the variable buffer-local. Return VARIABLE. | 1552 | does not make the variable buffer-local. Return VARIABLE. |
| 1553 | 1553 | ||
| 1554 | In most cases it is better to use `make-local-variable', | 1554 | This globally affects all uses of this variable, so it belongs together with |
| 1555 | which makes a variable local in just one buffer. | 1555 | the variable declaration, rather than with its uses (if you just want to make |
| 1556 | a variable local to the current buffer for one particular use, use | ||
| 1557 | `make-local-variable'). Buffer-local bindings are normally cleared | ||
| 1558 | while setting up a new major mode, unless they have a `permanent-local' | ||
| 1559 | property. | ||
| 1556 | 1560 | ||
| 1557 | The function `default-value' gets the default value and `set-default' sets it. */) | 1561 | The function `default-value' gets the default value and `set-default' sets it. */) |
| 1558 | (register Lisp_Object variable) | 1562 | (register Lisp_Object variable) |