aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2013-11-24 13:20:18 -0500
committerStefan Monnier2013-11-24 13:20:18 -0500
commit450533b07a9adf8a1d19d3ce7142f946f04e76ac (patch)
tree8a05b34ec2f89123dfc1cc80986be4c26cdc9e80 /src
parentc484f866812f216018bc42b7a9e3124507afa948 (diff)
downloademacs-450533b07a9adf8a1d19d3ce7142f946f04e76ac.tar.gz
emacs-450533b07a9adf8a1d19d3ce7142f946f04e76ac.zip
* src/data.c (Fmake_variable_buffer_local): Mention `permanent-local'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/data.c8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d17f320516c..c3062d0fc0a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12013-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * data.c (Fmake_variable_buffer_local): Mention `permanent-local'.
4
12013-11-23 Romain Francoise <romain@orebokech.com> 52013-11-23 Romain Francoise <romain@orebokech.com>
2 6
3 * fileio.c (init_fileio): Move `write_region_inhibit_fsync' 7 * fileio.c (init_fileio): Move `write_region_inhibit_fsync'
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
1551a `let'-style binding made in this buffer is in effect, 1551a `let'-style binding made in this buffer is in effect,
1552does not make the variable buffer-local. Return VARIABLE. 1552does not make the variable buffer-local. Return VARIABLE.
1553 1553
1554In most cases it is better to use `make-local-variable', 1554This globally affects all uses of this variable, so it belongs together with
1555which makes a variable local in just one buffer. 1555the variable declaration, rather than with its uses (if you just want to make
1556a variable local to the current buffer for one particular use, use
1557`make-local-variable'). Buffer-local bindings are normally cleared
1558while setting up a new major mode, unless they have a `permanent-local'
1559property.
1556 1560
1557The function `default-value' gets the default value and `set-default' sets it. */) 1561The function `default-value' gets the default value and `set-default' sets it. */)
1558 (register Lisp_Object variable) 1562 (register Lisp_Object variable)