emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f215332 1/7: Add cross-references to defvar-local


From: Stefan Kangas
Subject: master f215332 1/7: Add cross-references to defvar-local
Date: Mon, 1 Feb 2021 08:01:18 -0500 (EST)

branch: master
commit f215332c8be43ef0dc838e2a63012aba791818c2
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Add cross-references to defvar-local
    
    * src/data.c (Fmake_variable_buffer_local):
    * src/eval.c (Fdefvar): Add cross-references to 'defvar-local'.
---
 src/data.c | 4 +++-
 src/eval.c | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/data.c b/src/data.c
index 35a6890..38cde0f 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 5bf3fae..3aff3b5 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)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]