projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c00785c
)
Add 'doc-string' declaration to defcalcmodevar
author
Stefan Kangas
<stefan@marxist.se>
Sun, 26 Sep 2021 18:56:36 +0000
(20:56 +0200)
committer
Stefan Kangas
<stefan@marxist.se>
Sun, 26 Sep 2021 18:59:39 +0000
(20:59 +0200)
* lisp/calc/calc.el (defcalcmodevar): Add 'doc-string' declaration.
lisp/calc/calc.el
patch
|
blob
|
history
diff --git
a/lisp/calc/calc.el
b/lisp/calc/calc.el
index b9bdc0fd8dc3ceace461dd04924d73ae04bc4d4b..553bdc9c6edb0eb06bec0480e12a63956e6d9560 100644
(file)
--- a/
lisp/calc/calc.el
+++ b/
lisp/calc/calc.el
@@
-494,6
+494,7
@@
This setting only applies to floats in normal display mode.")
(defmacro defcalcmodevar (var defval &optional doc)
"Declare VAR as a Calc variable, with default value DEFVAL and doc-string DOC.
The variable VAR will be added to `calc-mode-var-list'."
+ (declare (doc-string 3))
`(progn
(defvar ,var ,defval ,doc)
(add-to-list 'calc-mode-var-list (list (quote ,var) ,defval))))