summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-09-19 14:33:21 +0000
committerRichard M. Stallman <rms@gnu.org>2003-09-19 14:33:21 +0000
commit2b99c69a3894627913582e4bcf23dba3712c3ce8 (patch)
treec2800df392678e5bfa39afa259c5f98ee88ea92a
parent5fc58d8323b63d83804aed17f19cb362e032f62d (diff)
downloademacs-2b99c69a3894627913582e4bcf23dba3712c3ce8.tar.gz
(Creating Buffer-Local): Delete duplicate definition of buffer-local-value.
(File Local Variables): Explain about discarding text props.
-rw-r--r--lispref/variables.texi19
1 files changed, 9 insertions, 10 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi
index 3848e465e41..0a99b1c110f 100644
--- a/lispref/variables.texi
+++ b/lispref/variables.texi
@@ -1319,9 +1319,10 @@ This returns @code{t} if @var{variable} is buffer-local in buffer
@end defun
@defun buffer-local-value variable buffer
-This returns the value of @var{variable} that is currently in
-effect in @var{buffer}. If it has no buffer-local binding in
-@var{buffer}, this function returns the default value.
+This function returns the buffer-local binding of @var{variable} (a
+symbol) in buffer @var{buffer}. If @var{variable} does not have a
+buffer-local binding in buffer @var{buffer}, it returns the default
+value (@pxref{Default Value}) of @var{variable} instead.
@end defun
@defun buffer-local-variables &optional buffer
@@ -1358,13 +1359,6 @@ Note that storing new values into the @sc{cdr}s of cons cells in this
list does @emph{not} change the buffer-local values of the variables.
@end defun
-@defun buffer-local-value variable buffer
-This function returns the buffer-local binding of @var{variable} (a
-symbol) in buffer @var{buffer}. If @var{variable} does not have a
-buffer-local binding in buffer @var{buffer}, it returns the default
-value (@pxref{Default Value}) of @var{variable} instead.
-@end defun
-
@deffn Command kill-local-variable variable
This function deletes the buffer-local binding (if any) for
@var{variable} (a symbol) in the current buffer. As a result, the
@@ -1770,6 +1764,11 @@ unconditionally; @code{nil} means ignore them; anything else means ask
the user what to do for each file. The default value is @code{maybe}.
@end defopt
+ Text properties are also potential loopholes, since their values
+could include functions to call. So Emacs discards all text
+properties from string values specified in a file's local variables
+list.
+
@ignore
arch-tag: 5ff62c44-2b51-47bb-99d4-fea5aeec5d3e
@end ignore