[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)
{
- master updated (a6be184 -> 3b708f4), Stefan Kangas, 2021/02/01
- master f215332 1/7: Add cross-references to defvar-local,
Stefan Kangas <=
- master 7de495a 2/7: Make two eshell aliases obsolete, Stefan Kangas, 2021/02/01
- master c322728 3/7: Redefine two functions as regular defuns, Stefan Kangas, 2021/02/01
- master 9785c6d 5/7: * lisp/hi-lock.el (hi-lock-mode): Doc fix; don't mention Emacs 21., Stefan Kangas, 2021/02/01
- master 3b708f4 7/7: * test/src/minibuf-tests.el (test-inhibit-interaction): Fix test., Stefan Kangas, 2021/02/01
- master d987ca6 6/7: Remove another variable obsolete since Emacs 23.2, Stefan Kangas, 2021/02/01
- master 1fdd7a0 4/7: Make XEmacs compat alias obsolete in allout-widgets.el, Stefan Kangas, 2021/02/01