diff options
| author | Chong Yidong | 2012-02-07 14:34:52 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-02-07 14:34:52 +0800 |
| commit | 0992bd9c06b90c8f316187467bcc005cbe51050e (patch) | |
| tree | 8dc76890f747f5aaccd2e2754fad74616c7d18bf /doc | |
| parent | 75ded89ba50f0b1758fe5c70701e0ae422b0c497 (diff) | |
| download | emacs-0992bd9c06b90c8f316187467bcc005cbe51050e.tar.gz emacs-0992bd9c06b90c8f316187467bcc005cbe51050e.zip | |
Fix and doc-fix for `buffer-local-variables'.
* src/buffer.c (Fbuffer_local_variables)
(buffer_lisp_local_variables): Handle unbound vars correctly;
don't let Qunbound leak into Lisp.
* doc/lispref/variables.texi (Creating Buffer-Local): Minor clarification
to buffer-local-variables doc.
Fixes: debbugs:10715
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 1a7c71232c6..04d1234be06 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-02-07 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * variables.texi (Creating Buffer-Local): Minor clarification | ||
| 4 | to buffer-local-variables doc (Bug#10715). | ||
| 5 | |||
| 1 | 2012-02-07 Glenn Morris <rgm@gnu.org> | 6 | 2012-02-07 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * display.texi (ImageMagick Images): General update. | 8 | * display.texi (ImageMagick Images): General update. |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index bdb16cd10a8..ab3a4edc0ac 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1317,11 +1317,12 @@ value (@pxref{Default Value}) of @var{variable} instead. | |||
| 1317 | 1317 | ||
| 1318 | @defun buffer-local-variables &optional buffer | 1318 | @defun buffer-local-variables &optional buffer |
| 1319 | This function returns a list describing the buffer-local variables in | 1319 | This function returns a list describing the buffer-local variables in |
| 1320 | buffer @var{buffer}. (If @var{buffer} is omitted, the current buffer is | 1320 | buffer @var{buffer}. (If @var{buffer} is omitted, the current buffer |
| 1321 | used.) It returns an association list (@pxref{Association Lists}) in | 1321 | is used.) Normally, each list element has the form |
| 1322 | which each element contains one buffer-local variable and its value. | 1322 | @w{@code{(@var{sym} . @var{val})}}, where @var{sym} is a buffer-local |
| 1323 | However, when a variable's buffer-local binding in @var{buffer} is void, | 1323 | variable (a symbol) and @var{val} is its buffer-local value. But when |
| 1324 | then the variable appears directly in the resulting list. | 1324 | a variable's buffer-local binding in @var{buffer} is void, its list |
| 1325 | element is just @var{sym}. | ||
| 1325 | 1326 | ||
| 1326 | @example | 1327 | @example |
| 1327 | @group | 1328 | @group |