aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-05-31 07:21:09 +0200
committerLars Ingebrigtsen2021-05-31 07:21:09 +0200
commit77f67d12f68a9fba210337b9ad38f049ec601fcb (patch)
tree08f904f2183c26c0f4f8f1f7838a2bb64987c96a /src/data.c
parentdb91108315016875ae912c0cbd6ccde563511b19 (diff)
downloademacs-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.c4
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. */)
2200DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p, 2200DEFUN ("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.
2203BUFFER defaults to the current buffer. */) 2203BUFFER defaults to the current buffer.
2204
2205Also 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);