diff options
| author | Richard M. Stallman | 2003-09-19 14:33:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-09-19 14:33:21 +0000 |
| commit | 2b99c69a3894627913582e4bcf23dba3712c3ce8 (patch) | |
| tree | c2800df392678e5bfa39afa259c5f98ee88ea92a | |
| parent | 5fc58d8323b63d83804aed17f19cb362e032f62d (diff) | |
| download | emacs-2b99c69a3894627913582e4bcf23dba3712c3ce8.tar.gz emacs-2b99c69a3894627913582e4bcf23dba3712c3ce8.zip | |
(Creating Buffer-Local): Delete duplicate definition of buffer-local-value.
(File Local Variables): Explain about discarding text props.
| -rw-r--r-- | lispref/variables.texi | 19 |
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 | |||
| 1319 | @end defun | 1319 | @end defun |
| 1320 | 1320 | ||
| 1321 | @defun buffer-local-value variable buffer | 1321 | @defun buffer-local-value variable buffer |
| 1322 | This returns the value of @var{variable} that is currently in | 1322 | This function returns the buffer-local binding of @var{variable} (a |
| 1323 | effect in @var{buffer}. If it has no buffer-local binding in | 1323 | symbol) in buffer @var{buffer}. If @var{variable} does not have a |
| 1324 | @var{buffer}, this function returns the default value. | 1324 | buffer-local binding in buffer @var{buffer}, it returns the default |
| 1325 | value (@pxref{Default Value}) of @var{variable} instead. | ||
| 1325 | @end defun | 1326 | @end defun |
| 1326 | 1327 | ||
| 1327 | @defun buffer-local-variables &optional buffer | 1328 | @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 | |||
| 1358 | list does @emph{not} change the buffer-local values of the variables. | 1359 | list does @emph{not} change the buffer-local values of the variables. |
| 1359 | @end defun | 1360 | @end defun |
| 1360 | 1361 | ||
| 1361 | @defun buffer-local-value variable buffer | ||
| 1362 | This function returns the buffer-local binding of @var{variable} (a | ||
| 1363 | symbol) in buffer @var{buffer}. If @var{variable} does not have a | ||
| 1364 | buffer-local binding in buffer @var{buffer}, it returns the default | ||
| 1365 | value (@pxref{Default Value}) of @var{variable} instead. | ||
| 1366 | @end defun | ||
| 1367 | |||
| 1368 | @deffn Command kill-local-variable variable | 1362 | @deffn Command kill-local-variable variable |
| 1369 | This function deletes the buffer-local binding (if any) for | 1363 | This function deletes the buffer-local binding (if any) for |
| 1370 | @var{variable} (a symbol) in the current buffer. As a result, the | 1364 | @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 | |||
| 1770 | the user what to do for each file. The default value is @code{maybe}. | 1764 | the user what to do for each file. The default value is @code{maybe}. |
| 1771 | @end defopt | 1765 | @end defopt |
| 1772 | 1766 | ||
| 1767 | Text properties are also potential loopholes, since their values | ||
| 1768 | could include functions to call. So Emacs discards all text | ||
| 1769 | properties from string values specified in a file's local variables | ||
| 1770 | list. | ||
| 1771 | |||
| 1773 | @ignore | 1772 | @ignore |
| 1774 | arch-tag: 5ff62c44-2b51-47bb-99d4-fea5aeec5d3e | 1773 | arch-tag: 5ff62c44-2b51-47bb-99d4-fea5aeec5d3e |
| 1775 | @end ignore | 1774 | @end ignore |