GNU bug report logs - #78976
2 bugs in eintr

Previous Next

Package: emacs;

Reported by: Иван Битюцкий <ivbit <at> rambler.ru>

Date: Wed, 9 Jul 2025 03:32:03 UTC

Severity: normal

To reply to this bug, email your comments to 78976 AT debbugs.gnu.org.

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#78976; Package emacs. (Wed, 09 Jul 2025 03:32:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Иван Битюцкий <ivbit <at> rambler.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 09 Jul 2025 03:32:03 GMT) Full text and rfc822 format available.

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

From: "Иван Битюцкий" <ivbit <at> rambler.ru>
To: bug-gnu-emacs <at> gnu.org
Cc: eliz <at> gnu.org
Subject: 2 bugs in eintr
Date: Tue, 08 Jul 2025 14:37:08 +0000
[Message part 1 (text/plain, inline)]
Greetings! I've found 2 bugs in "Emacs Lisp Intro", which is"An Introduction to Programming in Emacs Lisp" by Bob Chassell. *** 1st bug: When reading in Emacs in info and evaluating code from Appendix C "A graph with labeled axes" with C-x C-e, then switching to scratch buffer to print the graph, Emacs complains about wrong number of arguments to a function print-Y-axis . *** 2nd bug: Appendix C "A graph with labeled axes" , function print-X-axis-numbered-line does not print the first number in the X axis of the graph. *** I've fixed both bugs and the fixed functions are in attached file eintr-bugfix.el.gz *** Suggestion: Add another page with final versions of all functions to print graph put together, so readers can install them with C-x C-e, then switch to the scratch buffer and print the graph. I've collected all the necessary functions with bugfixes and a small extra function to make it easier to print graph in attached file eintr-graph.el.gz *** Other:  At the end of Index node, when I press SPACE, I'm taken to "C.2.1 Side Trip: Compute a Remainder" instead of "About the Author" node. *** I'm switching to GNU Emacs after 20 years of using the "other" editor. Feels great so far.
[Message part 2 (text/html, inline)]
[eintr-bugfix.el.gz (application/gzip, attachment)]
[eintr-graph.el.gz (application/gzip, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78976; Package emacs. (Sat, 19 Jul 2025 07:47:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Иван Битюцкий <ivbit <at> rambler.ru>
Cc: 78976 <at> debbugs.gnu.org
Subject: Re: 2 bugs in eintr
Date: Sat, 19 Jul 2025 10:46:43 +0300
> Date: Tue, 08 Jul 2025 14:37:08 +0000
> From: "Иван Битюцкий" <ivbit <at> rambler.ru>
> Cc: eliz <at> gnu.org
> 
> Greetings!
> I've found 2 bugs in "Emacs Lisp Intro", which is
> "An Introduction to Programming in Emacs Lisp"
> by Bob Chassell.
> ***
> 1st bug: When reading in Emacs in info and evaluating code
> from Appendix C "A graph with labeled axes" with C-x C-e,
> then switching to scratch buffer to print the graph, Emacs
> complains about wrong number of arguments to a function
> print-Y-axis .
> ***
> 2nd bug: Appendix C "A graph with labeled axes" , function
> print-X-axis-numbered-line does not print the first number
> in the X axis of the graph.
> ***
> I've fixed both bugs and the fixed functions are in attached
> file eintr-bugfix.el.gz

Thanks.  However, I couldn't figure out what code specifically you are
talking about.  Appendix C has quite a lot of code, with some
functions presented more than once, as the development of their code
proceeds.  I need specific pointers to problematic code, preferably in
terms of line numbers in the source file emacs-lisp-intro.texi.  The
code you present is also quite different from what the manual presents
as the "final versions" of the functions in section C.4 and its
subs-sections.  So I had difficulty understanding what to change and
where.

> ***
> Suggestion: Add another page with final versions of all
> functions to print graph put together, so readers can
> install them with C-x C-e, then switch to the scratch
> buffer and print the graph. I've collected all the necessary
> functions with bugfixes and a small extra function to make
> it easier to print graph in attached file eintr-graph.el.gz

This is okay, but your suggested code includes more than just the
functions and the variables needed to build graphs: it also includes
some graph data.  These should be clearly separated, for obvious
didactic reasons.

> ***
> Other:  At the end of Index node, when I press SPACE,
> I'm taken to "C.2.1 Side Trip: Compute a Remainder"
> instead of "About the Author" node.

Pressing SPC at the end of a node with a menu (which is what the Index
node is: a giant menu) should take you to the node pointed to by the
first menu item.  In my case, the first menu item is this:

  * .emacs file:                           Emacs Initialization. (line   6)

And indeed, pressing SPC takes me to the "Emacs Initialization" node.
So I see no problem here, and don't understand why you expected to be
taken to "C.2.1" subsection.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78976; Package emacs. (Tue, 22 Jul 2025 02:47:02 GMT) Full text and rfc822 format available.

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

From: "Иван Битюцкий" <ivbit <at> rambler.ru>
To: 78976 <at> debbugs.gnu.org
Subject: Re: 2 bugs in eintr
Date: Tue, 22 Jul 2025 02:45:50 +0000
[Message part 1 (text/plain, inline)]
In file emacs-lisp-intro.texi downloaded from: https://www.gnu.org/software/emacs/manual/texi/eintr.texi.tar.gz https://www.gnu.org/software/emacs/manual/texi/eintr.texi.tar.gz 1st bug was in function at line 20014, (defun print-Y-axis I see it is fixed now with defun added at line 21463. 2nd bug is in function at line 21597, (defun print-X-axis-numbered-line Fix is to insert additional line at line 21609: (number-to-string horizontal-step) Not all functions labeled "final" are actually final in this chapter. Some have improved versions later in the text. Functions in eintr-graph.el.gz were all copied from info version of manual while reading in Emacs. Adding them as another page is just a suggestion. Fixing 2 bugs should be enough, I think.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78976; Package emacs. (Sat, 26 Jul 2025 09:26:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Иван Битюцкий <ivbit <at> rambler.ru>
Cc: 78976 <at> debbugs.gnu.org
Subject: Re: bug#78976: 2 bugs in eintr
Date: Sat, 26 Jul 2025 12:24:53 +0300
> Date: Tue, 22 Jul 2025 02:45:50 +0000
> From: ivbit--- via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> In file emacs-lisp-intro.texi downloaded from:
> https://www.gnu.org/software/emacs/manual/texi/eintr.texi.tar.gz
> 
> 1st bug was in function at line 20014, (defun print-Y-axis
> I see it is fixed now with defun added at line 21463.

OK.

> 2nd bug is in function at line 21597, (defun print-X-axis-numbered-line

This function is in @ignore block, so it doesn't get into the manual.
Do we still need to fix it?  Or maybe we need to fix some other place?

> Fix is to insert additional line at line 21609:
> (number-to-string horizontal-step)
> 
> Not all functions labeled "final" are actually final in this chapter.
> Some have improved versions later in the text.
> Functions in eintr-graph.el.gz were all copied from info version of manual while reading in Emacs.
> Adding them as another page is just a suggestion. Fixing 2 bugs should be enough, I think.

OK.




This bug report was last modified 1 day ago.

Previous Next


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