[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r112355: emacs-lisp-intro.texi fixes.
From: |
Xue Fuqiao |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r112355: emacs-lisp-intro.texi fixes. |
Date: |
Tue, 23 Apr 2013 08:43:07 +0800 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 112355
committer: Xue Fuqiao <address@hidden>
branch nick: trunk
timestamp: Tue 2013-04-23 08:43:07 +0800
message:
emacs-lisp-intro.texi fixes.
* 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)
modified:
doc/lispintro/ChangeLog
doc/lispintro/emacs-lisp-intro.texi
=== modified file 'doc/lispintro/ChangeLog'
--- a/doc/lispintro/ChangeLog 2013-04-21 11:56:28 +0000
+++ b/doc/lispintro/ChangeLog 2013-04-23 00:43:07 +0000
@@ -1,3 +1,8 @@
+2013-04-23 Xue Fuqiao <address@hidden>
+
+ * 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 <address@hidden>
* emacs-lisp-intro.texi (defcustom, defun)
=== modified file 'doc/lispintro/emacs-lisp-intro.texi'
--- a/doc/lispintro/emacs-lisp-intro.texi 2013-04-21 11:56:28 +0000
+++ b/doc/lispintro/emacs-lisp-intro.texi 2013-04-23 00:43:07 +0000
@@ -457,7 +457,7 @@
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 @@
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
address@hidden 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 @@
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::
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r112355: emacs-lisp-intro.texi fixes.,
Xue Fuqiao <=