unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: xfq <xfq.free@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: /srv/bzr/emacs/trunk r112347: * doc/lispintro/emacs-lisp-intro.texi (defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macros rather than special forms. (Bug#13853)
Date: Mon, 22 Apr 2013 13:02:58 -0400	[thread overview]
Message-ID: <w7ppxma471.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <CAAF+z6GHxYj02zKkhiWk2N8nKfgGKq3oWtTvXDZYXRB4d+GHhA@mail.gmail.com> (xfq's message of "Mon, 22 Apr 2013 06:54:49 +0800")


> Maybe we can add this sentence to (info "(eintr) defun") or (info
> "(eintr) Complications"), then add a cross reference to (info "(eintr)
> Lisp macro"):
>
>   "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.

I think a few sentences in "Complications" after the bit about special
forms with a link to the "Lisp macro" section of eintr is indeed all
that is needed. Personally I would say something about it acting like a
function for our [ie, the elisp-intro's] purposes.

>>> -(Another special form, @code{defcustom}, is designed for variables
>>> -that people customize.  It has more features than @code{defvar}.
>>> -(@xref{defcustom, , Setting Variables with @code{defcustom}}.)
>>
>> Why was this removed? It could have been simply changed to "Another
>> function,... ". The reference to defcustom is the important thing, not
>> the details of whether it is a special form or macro.
>
> Maybe "another macro"?

For the purposes of the elisp-intro, I have no problem saying a macro is
a function. You call it with arguments and it does stuff. "Another
macro" is wrong because defvar is not a macro. If you want to say macro
rather than function, you need to rewored it a bit more. Eg:

  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}}.)

> Thanks, I will do it the next time.  (Is there anyway to amend this
> commit log?)

No, it's immutable. But no big deal, so don't worry about it.



  reply	other threads:[~2013-04-22 17:02 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1UTtCq-0003Tj-Lr@vcs.savannah.gnu.org>
2013-04-21 12:39 ` /srv/bzr/emacs/trunk r112347: * doc/lispintro/emacs-lisp-intro.texi (defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macros rather than special forms. (Bug#13853) Leo Liu
2013-04-21 13:00   ` xfq
2013-04-21 14:00     ` Dmitry Gutov
2013-04-21 16:55       ` /srv/bzr/emacs/trunk r112347: *doc/lispintro/emacs-lisp-intro.texi (defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macros rather thanspecial " Drew Adams
2013-04-21 17:14         ` Dmitry Gutov
2013-04-21 17:55           ` Stephen J. Turnbull
2013-04-22  1:47             ` Dmitry Gutov
2013-04-21 18:04           ` Drew Adams
2013-04-21 18:57             ` Stephen J. Turnbull
2013-04-21 19:40               ` /srv/bzr/emacs/trunk r112347:*doc/lispintro/emacs-lisp-intro.texi (defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macros ratherthanspecial " Drew Adams
2013-04-22  1:21                 ` Stephen J. Turnbull
2013-04-22  1:35                   ` /srv/bzr/emacs/trunk r112347:*doc/lispintro/emacs-lisp-intro.texi(defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macrosratherthanspecial " Drew Adams
2013-04-22  2:00             ` /srv/bzr/emacs/trunk r112347: *doc/lispintro/emacs-lisp-intro.texi (defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macros rather thanspecial " Dmitry Gutov
2013-04-21 18:07       ` /srv/bzr/emacs/trunk r112347: * doc/lispintro/emacs-lisp-intro.texi (defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macros rather than special " Glenn Morris
2013-04-21 22:54         ` xfq
2013-04-22 17:02           ` Glenn Morris [this message]
2013-04-23  0:47             ` Xue Fuqiao
2013-04-23 16:42               ` Glenn Morris
2013-04-23 22:28                 ` Xue Fuqiao
2013-04-22  3:17         ` Leo Liu
2013-04-22 10:31           ` xfq
2013-04-22 14:11             ` Leo Liu
2013-04-22 14:19               ` Dmitry Gutov
2013-04-22 15:37                 ` Leo Liu
2013-04-22 14:47   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=w7ppxma471.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=xfq.free@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).