From: "Robert Musial via RT" <webmasters-comment@gnu.org>
Cc: 15558@debbugs.gnu.org
Subject: bug#15558: [gnu.org #859332] Error in elisp on line documentation
Date: Mon, 07 Oct 2013 19:32:27 -0400 [thread overview]
Message-ID: <rt-3.4.5-18717-1381188746-933.859332-8-0@rt.gnu.org> (raw)
In-Reply-To: <CAB+Aj0vReBpxZx7C31hXZHB3_K=rzSbKOR5BtUiZ2bv9PuSw=Q@mail.gmail.com>
Emacs team:
Below is another documentation improvement suggestion.
Thanks!
> [ke1g.nh@gmail.com - Thu Sep 26 12:06:21 2013]:
>
> (Please forward to the appropriate document maintainer.)
>
> I believe that I have found an error in the description of cond at:
>
>
> http://www.gnu.org/software/emacs/manual/html_node/elisp/Conditionals.html
>
> The description implies that the "condition" element of a clause is not
> included in "body-forms". This is a reasonable separation, since (if the
> clause is reached) the condition is evaluated while the body-forms may or
> may not be (depending upon the condition's value).
>
> But it goes on to say that the value (of the cond) is that of the last of
> the body-forms to be evaluated. Yet it is perfectly legal for a clause to
> have no body-forms, only a condition. In this case, if the condition is
> non-nil, that is, if the clause succeeds, the value of the cond will
be the
> value of the condition. This is the last form evaluated, not the last of
> the body-forms evaluated (since none of the body-forms were evaluated).
>
> You can confirm this behavior by evaluating the following (the result will
> be 3):
>
> > (cond (3)(1 4))
>
> The current text actually leaves the value undefined for this case. It is
> a useful case, and should be correctly documented.
>
> Perhaps something like:
>
> > ...and the value of the last of body-forms, or, if there are no
> body-forms in the clause, the value of the condition, becomes the value of
> the cond.
>
> Bill (formerly f@ai. "Hi" to RMS if he's about)
>
>
--
Robert Musial - musial at gnu dot org - GPG key 533A1341
Join the FSF! http://www.fsf.org/register_form?referrer=9143
next parent reply other threads:[~2013-10-07 23:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <RT-Ticket-859332@rt.gnu.org>
[not found] ` <CAB+Aj0vReBpxZx7C31hXZHB3_K=rzSbKOR5BtUiZ2bv9PuSw=Q@mail.gmail.com>
2013-10-07 23:32 ` Robert Musial via RT [this message]
2013-10-08 16:17 ` bug#15558: [gnu.org #859332] Error in elisp on line documentation Glenn Morris
2013-10-08 17:32 ` Bill Freeman
2013-10-09 17:19 ` Glenn Morris
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rt-3.4.5-18717-1381188746-933.859332-8-0@rt.gnu.org \
--to=webmasters-comment@gnu.org \
--cc=15558@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.