diff options
| author | Lars Ingebrigtsen | 2021-05-31 07:21:09 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-05-31 07:21:09 +0200 |
| commit | 77f67d12f68a9fba210337b9ad38f049ec601fcb (patch) | |
| tree | 08f904f2183c26c0f4f8f1f7838a2bb64987c96a /src/data.c | |
| parent | db91108315016875ae912c0cbd6ccde563511b19 (diff) | |
| download | emacs-77f67d12f68a9fba210337b9ad38f049ec601fcb.tar.gz emacs-77f67d12f68a9fba210337b9ad38f049ec601fcb.zip | |
Add new convenience function `buffer-local-boundp'
* doc/lispref/variables.texi (Creating Buffer-Local): Document it.
* lisp/subr.el (buffer-local-boundp): New function.
* src/data.c (Flocal_variable_p): Mention it.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c index d547f5da5e0..059f31e514b 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -2200,7 +2200,9 @@ From now on the default value will apply in this buffer. Return VARIABLE. */) | |||
| 2200 | DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p, | 2200 | DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p, |
| 2201 | 1, 2, 0, | 2201 | 1, 2, 0, |
| 2202 | doc: /* Non-nil if VARIABLE has a local binding in buffer BUFFER. | 2202 | doc: /* Non-nil if VARIABLE has a local binding in buffer BUFFER. |
| 2203 | BUFFER defaults to the current buffer. */) | 2203 | BUFFER defaults to the current buffer. |
| 2204 | |||
| 2205 | Also see `buffer-local-boundp'.*/) | ||
| 2204 | (Lisp_Object variable, Lisp_Object buffer) | 2206 | (Lisp_Object variable, Lisp_Object buffer) |
| 2205 | { | 2207 | { |
| 2206 | struct buffer *buf = decode_buffer (buffer); | 2208 | struct buffer *buf = decode_buffer (buffer); |