Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0654d6e3
Commit
0654d6e3
authored
Jul 07, 2002
by
Richard M. Stallman
Browse files
(Fdefmacro): Doc fix.
parent
259bf181
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/eval.c
src/eval.c
+14
-2
No files found.
src/eval.c
View file @
0654d6e3
...
...
@@ -646,12 +646,24 @@ usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */)
DEFUN
(
"defmacro"
,
Fdefmacro
,
Sdefmacro
,
2
,
UNEVALLED
,
0
,
doc
:
/* Define NAME as a macro.
The definition is (macro lambda ARGLIST [DOCSTRING] BODY...).
The actual definition looks like
(macro lambda ARGLIST [DOCSTRING] [DECL] BODY...).
When the macro is called, as in (NAME ARGS...),
the function (lambda ARGLIST BODY...) is applied to
the list ARGS... as it appears in the expression,
and the result should be a form to be evaluated instead of the original.
usage: (defmacro NAME ARGLIST [DOCSTRING] BODY...) */
)
DECL is a declaration, optional, which can specify how to indent
calls to this macro and how Edebug should handle it. It looks like this:
(declare SPECS...)
The elements can look like this:
(indent INDENT)
Set NAME's `lisp-indent-function' property to INDENT.
(edebug DEBUG)
Set NAME's `edebug-form-spec' property to DEBUG. (This is
equivalent to writing a `def-edebug-spec' for the macro.
usage: (defmacro NAME ARGLIST [DOCSTRING] [DECL] BODY...) */
)
(
args
)
Lisp_Object
args
;
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment