changeset 52536:8fdcd48f4b33

(Creating Buffer-Local): Delete duplicate definition of buffer-local-value. (File Local Variables): Explain about discarding text props.
author Richard M. Stallman <rms@gnu.org>
date Fri, 19 Sep 2003 14:33:21 +0000
parents f40f0d207133
children ab6a470dc45f
files lispref/variables.texi
diffstat 1 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/variables.texi	Fri Sep 19 14:31:15 2003 +0000
+++ b/lispref/variables.texi	Fri Sep 19 14:33:21 2003 +0000
@@ -1319,9 +1319,10 @@
 @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 @@
 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 @@
 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