From: Glenn Morris Date: Wed, 31 Oct 2012 20:54:19 +0000 (-0400) Subject: Lispref updates for some things no longer being special forms X-Git-Tag: emacs-24.2.90~198 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=89b2c8a133b379520d25a7bfa132178f8226d226;p=emacs.git Lispref updates for some things no longer being special forms * doc/lispref/eval.texi (Special Forms): No longer special forms: defmacro, defun, save-window-excursion, with-output-to-temp-buffer. * doc/lispref/functions.texi (Defining Functions): Defun is now a macro. Defalias is a function. --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index eca39e54203..31da666eea6 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,10 @@ +2012-10-31 Glenn Morris + + * eval.texi (Special Forms): No longer special forms: defmacro, + defun, save-window-excursion, with-output-to-temp-buffer. + * functions.texi (Defining Functions): Defun is now a macro. + Defalias is a function. + 2012-10-30 Glenn Morris * variables.texi (Generalized Variables): Fix typo. diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi index b373ecfbe62..670b293bea6 100644 --- a/doc/lispref/eval.texi +++ b/doc/lispref/eval.texi @@ -450,12 +450,6 @@ Emacs Lisp with a reference to where each is described. @item defconst @pxref{Defining Variables} -@item defmacro -@pxref{Defining Macros} - -@item defun -@pxref{Defining Functions} - @item defvar @pxref{Defining Variables} @@ -492,9 +486,6 @@ Emacs Lisp with a reference to where each is described. @item save-restriction @pxref{Narrowing} -@item save-window-excursion -@pxref{Window Configurations} - @item setq @pxref{Setting Variables} @@ -509,9 +500,6 @@ Emacs Lisp with a reference to where each is described. @item while @pxref{Iteration} - -@item with-output-to-temp-buffer -@pxref{Temporary Displays} @end table @cindex CL note---special forms compared @@ -519,8 +507,7 @@ Emacs Lisp with a reference to where each is described. @b{Common Lisp note:} Here are some comparisons of special forms in GNU Emacs Lisp and Common Lisp. @code{setq}, @code{if}, and @code{catch} are special forms in both Emacs Lisp and Common Lisp. -@code{defun} is a special form in Emacs Lisp, but a macro in Common -Lisp. @code{save-excursion} is a special form in Emacs Lisp, but +@code{save-excursion} is a special form in Emacs Lisp, but doesn't exist in Common Lisp. @code{throw} is a special form in Common Lisp (because it must be able to throw multiple values), but it is a function in Emacs Lisp (which doesn't have multiple diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 623106b6d06..05fd2486fd6 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi @@ -520,7 +520,7 @@ Scheme.) We usually give a name to a function when it is first created. This is called @dfn{defining a function}, and it is done with the -@code{defun} special form. +@code{defun} macro. @defmac defun name args [doc] [declare] [interactive] body@dots{} @code{defun} is the usual way to define new Lisp functions. It @@ -583,7 +583,7 @@ redefinition from unintentional redefinition. @cindex function aliases @defun defalias name definition &optional doc @anchor{Definition of defalias} -This special form defines the symbol @var{name} as a function, with +This function defines the symbol @var{name} as a function, with definition @var{definition} (which can be any valid Lisp function). Its return value is @emph{undefined}.