From: Stefan Kangas Date: Mon, 1 Feb 2021 00:43:29 +0000 (+0100) Subject: Add cross-references to defvar-local X-Git-Tag: emacs-28.0.90~3986 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f215332c8be43ef0dc838e2a63012aba791818c2;p=emacs.git Add cross-references to defvar-local * src/data.c (Fmake_variable_buffer_local): * src/eval.c (Fdefvar): Add cross-references to 'defvar-local'. --- diff --git a/src/data.c b/src/data.c index 35a6890b9bd..38cde0ff8b2 100644 --- a/src/data.c +++ b/src/data.c @@ -1819,7 +1819,9 @@ a variable local to the current buffer for one particular use, use while setting up a new major mode, unless they have a `permanent-local' property. -The function `default-value' gets the default value and `set-default' sets it. */) +The function `default-value' gets the default value and `set-default' sets it. + +See also `defvar-local'. */) (register Lisp_Object variable) { struct Lisp_Symbol *sym; diff --git a/src/eval.c b/src/eval.c index 5bf3faebc85..3aff3b56d52 100644 --- a/src/eval.c +++ b/src/eval.c @@ -818,6 +818,8 @@ The optional argument DOCSTRING is a documentation string for the variable. To define a user option, use `defcustom' instead of `defvar'. + +To define a buffer-local variable, use `defvar-local'. usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) (Lisp_Object args) {