emacs-lisp-intro.texi fixes.
authorXue Fuqiao <xfq.free@gmail.com>
Tue, 23 Apr 2013 00:43:07 +0000 (08:43 +0800)
committerXue Fuqiao <xfq.free@gmail.com>
Tue, 23 Apr 2013 00:43:07 +0000 (08:43 +0800)
* doc/lispintro/emacs-lisp-intro.texi (Complications, defvar): Refine the doc about Lisp macros. (http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00618.html)

doc/lispintro/ChangeLog
doc/lispintro/emacs-lisp-intro.texi

index 1f27775..be9f9f9 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-23  Xue Fuqiao  <xfq.free@gmail.com>
+
+       * emacs-lisp-intro.texi (Complications, defvar): Refine the doc
+       about Lisp macros. (http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00618.html)
+
 2013-04-21  Xue Fuqiao  <xfq.free@gmail.com>
 
        * emacs-lisp-intro.texi (defcustom, defun)
index 3147960..7831603 100644 (file)
@@ -457,7 +457,7 @@ Practicing Evaluation
 How To Write Function Definitions
 
 * Primitive Functions::
-* defun::                        The @code{defun} special form.
+* defun::                        The @code{defun} macro.
 * Install::                      Install a function definition.
 * Interactive::                  Making a function interactive.
 * Interactive Options::          Different options for @code{interactive}.
@@ -1618,11 +1618,16 @@ the symbol's value as a @dfn{variable}.  This situation is described
 in the section on variables.  (@xref{Variables}.)
 
 @cindex Special form
-The second complication occurs because some functions are unusual and do
-not work in the usual manner.  Those that don't are called @dfn{special
-forms}.  They are used for special jobs, like defining a function, and
-there are not many of them.  In the next few chapters, you will be
-introduced to several of the more important special forms.
+The second complication occurs because some functions are unusual and
+do not work in the usual manner.  Those that don't are called
+@dfn{special forms}.  They are used for special jobs, like defining a
+function, and there are not many of them.  In the next few chapters,
+you will be introduced to several of the more important special forms.
+And there are also @dfn{macros}.  Macro is a construct defined in
+Lisp, which differs from a function in that it translates a Lisp
+expression into another expression which is to be evaluated instead of
+the original expression.  (@xref{Lisp macro}.)
+
 
 The third and final complication is this: if the function that the
 Lisp interpreter is looking at is not a special form, and if it is part
@@ -9291,6 +9296,10 @@ have a value.  If the variable already has a value, @code{defvar} does
 not override the existing value.  Second, @code{defvar} has a
 documentation string.
 
+(There is a related macro, @code{defcustom}, designed for variables
+that people customize.  It has more features than @code{defvar}.
+(@xref{defcustom, , Setting Variables with @code{defcustom}}.)
+
 @menu
 * See variable current value::
 * defvar and asterisk::