GNU bug report logs - #37747
An Introduction to Programming in Emacs Lisp (eintr) - Texinfo documentation error

Previous Next

Package: emacs;

Reported by: Lata BL <lbennettleaver <at> yahoo.co.uk>

Date: Mon, 14 Oct 2019 15:19:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37747 in the body.
You can then email your comments to 37747 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37747; Package emacs. (Mon, 14 Oct 2019 15:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lata BL <lbennettleaver <at> yahoo.co.uk>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 14 Oct 2019 15:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lata BL <lbennettleaver <at> yahoo.co.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: An Introduction to Programming in Emacs Lisp (eintr) - Texinfo
 documentation error
Date: Mon, 14 Oct 2019 12:11:29 +0000 (UTC)
[Message part 1 (text/plain, inline)]
 Package: emacs

I am reading the Introduction to Programming in Emacs Lisp (eintr) documentation in Emacs 26.3 in Info mode

I have encountered 2 possible errors so far:-
Error 1) I am confused as to whether there are 3 or 4 "special forms" in chapter 3.
Is 'defun' treated as a macro or a special form or both of those?

3.7 The ‘if’ Special Form
=========================
A third special form, in addition to ‘defun’ and ‘let’, is the
conditional ‘if’.

<<< The number of special forms is later contradicted in 3.10 as follows >>>

3.10 ‘save-excursion’
=====================
The ‘save-excursion’ function is the third and final special form that
we will discuss in this chapter.


Error 2) Possible extra closing parenthesis prevents evaluation with C-x C-e
3.7.1 The ‘type-of-animal’ Function in Detail
---------------------------------------------
...
  In the ‘type-of-animal’ function, the code for the ‘if’ looks like
this:

    (if (equal characteristic "fierce")
        (message "It is a tiger!")))

thank you, Mark Bennett-Leaver  
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Mon, 14 Oct 2019 17:26:02 GMT) Full text and rfc822 format available.

Notification sent to Lata BL <lbennettleaver <at> yahoo.co.uk>:
bug acknowledged by developer. (Mon, 14 Oct 2019 17:26:02 GMT) Full text and rfc822 format available.

Message #10 received at 37747-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lata BL <lbennettleaver <at> yahoo.co.uk>
Cc: 37747-done <at> debbugs.gnu.org
Subject: Re: bug#37747: An Introduction to Programming in Emacs Lisp (eintr) -
 Texinfo documentation error
Date: Mon, 14 Oct 2019 20:25:19 +0300
> Date: Mon, 14 Oct 2019 12:11:29 +0000 (UTC)
> From: Lata BL via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> I have encountered 2 possible errors so far:-
> Error 1) I am confused as to whether there are 3 or 4 "special forms" in chapter 3.
> Is 'defun' treated as a macro or a special form or both of those?
> 
> 3.7 The ‘if’ Special Form
> =========================
> A third special form, in addition to ‘defun’ and ‘let’, is the
> conditional ‘if’.
> 
> <<< The number of special forms is later contradicted in 3.10 as follows >>>
> 
> 3.10 ‘save-excursion’
> =====================
> The ‘save-excursion’ function is the third and final special form that
> we will discuss in this chapter.

Thanks, I fixed these places.  'defun' was originally a special form,
but now it's a macro, as described in "Complications" and in section
3.1.

> Error 2) Possible extra closing parenthesis prevents evaluation with C-x C-e
> 3.7.1 The ‘type-of-animal’ Function in Detail
> ---------------------------------------------
> ...
>   In the ‘type-of-animal’ function, the code for the ‘if’ looks like
> this:
> 
>     (if (equal characteristic "fierce")
>         (message "It is a tiger!")))

In the current version of the manual, this is a complete function, and
its parentheses are balanced.

With that, I'm closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 12 Nov 2019 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.