diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-18 11:57:41 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-18 11:57:41 -0400 |
commit | 1053a8716ba9f1834eccff14ece377928a4bd244 (patch) | |
tree | 775e64585480452dcaa629ee9ffa2b85505d3e01 /doc/lispref/macros.texi | |
parent | b7e8d081674c24b19c5ee39892a72aef25c1dfcc (diff) | |
download | emacs-1053a8716ba9f1834eccff14ece377928a4bd244.tar.gz |
Fix return value of `defun' and un-define it.
* src/data.c (Fdefalias): Return `symbol'.
* doc/lispref/functions.texi (Defining Functions):
* doc/lispref/macros.texi (Defining Macros): Un-define the return value of
`defun', `defmacro' and `defalias'.
Fixes: debbugs:11686
Diffstat (limited to 'doc/lispref/macros.texi')
-rw-r--r-- | doc/lispref/macros.texi | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/doc/lispref/macros.texi b/doc/lispref/macros.texi index b9b0e03c65a..efe298bf647 100644 --- a/doc/lispref/macros.texi +++ b/doc/lispref/macros.texi @@ -113,7 +113,6 @@ uses this feature. @group (defmacro inc (var) (list 'setq var (list '1+ var))) - @result{} inc @end group @group @@ -124,7 +123,6 @@ uses this feature. @group (defmacro inc2 (var1 var2) (list 'progn (list 'inc var1) (list 'inc var2))) - @result{} inc2 @end group @group @@ -207,9 +205,8 @@ like this: @end example (Note that the @sc{cdr} of this list is a function---a lambda expression.) -This macro object is stored in the function cell of @var{name}. The -value returned by evaluating the @code{defmacro} form is @var{name}, but -usually we ignore this value. +This macro object is stored in the function cell of @var{name}. Its return +value is @emph{undefined}. The shape and meaning of @var{argument-list} is the same as in a function, and the keywords @code{&rest} and @code{&optional} may be used @@ -342,7 +339,6 @@ For example, (for i from 1 to 10 do (print i))." (cons (list '<= var final) (append body (list (list 'inc var))))))) @end group -@result{} for @group (for i from 1 to 3 do @@ -512,7 +508,6 @@ it. Here is an example: @group (defmacro foo (a) (list 'setq (eval a) t)) - @result{} foo @end group @group (setq x 'b) |