From 2b99c69a3894627913582e4bcf23dba3712c3ce8 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 19 Sep 2003 14:33:21 +0000 Subject: [PATCH] (Creating Buffer-Local): Delete duplicate definition of buffer-local-value. (File Local Variables): Explain about discarding text props. --- lispref/variables.texi | 19 +++++++++---------- 1 file 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 -- 2.39.2