From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64692-done@debbugs.gnu.org
Subject: bug#64692: Better descriptions of Cons Cells and Dotted Notation with real-life syntax
Date: Tue, 18 Jul 2023 11:19:14 +0000 [thread overview]
Message-ID: <9mpth_kCQ9iv3_-Tk2wLiHgbpRyj12nL_rNlECoWNsqlkzrCzZDRaCABpdCQXsLyuxPVJD2dyvKlyrxzTMFPVYAfBww6lZqk8DAaWD_Kvk8=@proton.me> (raw)
In-Reply-To: <83pm4p7ane.fsf@gnu.org>
------- Original Message -------
On Tuesday, July 18th, 2023 at 10:53 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Mon, 17 Jul 2023 20:17:19 +0000
> > From: uzibalqa via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" bug-gnu-emacs@gnu.org
> >
> > Have been looking at the documentation of menu-item described as
> >
> > (menu-item item-name real-binding . item-property-list)
> >
> > This requires a good understanding of Cons Cells and Dotted Notation.
> > But I do not see a serious attempt to explain this.
>
>
> There's a node "Cons Cells" in the manual which explains that.
>
> The cons cells are so central to Emacs Lisp that it is impractical to
> explain them in each place where we use them in the manual, or even
> provide a cross-reference in each such place.
The suggestion is to improve and expand the section on Cons Cells and Dotted Notation
not only in the reference manual but also in the introduction manual. Unwillingness
to not even provide a cross-reference is a disservice.
> > Whereas the Emacs
> > Lisp Reference Manual isn't designed as a tutorial with explanations,
> > the "Introduction to Programming in Emacs Lisp" simply refers to the
> > "Emacs Lisp Reference Manual" for understanding Cons Cells and Dotted Notation.
> >
> > This means that the "Introduction to Programming in Emacs Lisp" would benefit
> > from some real-life list syntax. Currently I find it short and far from real-life.
>
>
> The Introduction manual has a node "List diagrammed", to which you
> will get if you type "i cons cell RET", which describes that, with
> pictures.
No, I am talking about a direct discussion of Cons Cells and Dotted Notation,
not about list diagrams.
The specification that
(a b c . dlist)
results in a single list should be described rather than having everybody
figure it out independently. Whilst using a b c in not so bad, if I but
such code in a package, most experienced programmers would complain that
I am being too cryptic even though they should have the ability to decipher
whatever I'm doing. Real-life examples of interesting situations from the
emacs code base should also be used if you want people to transition from
toy descriptions to real life work.
> > In general, the construction of menus should be better described as it is currently
> > too theoretical in the reference.
>
>
> I disagree that it's "theoretical": it's quite practical, and even
> includes an example.
The examples are incomplete because making submenus is avoided and there are no calls
to 'define-key-after'. And because the reference is not for examples as the experienced
ones insist, that information should be put in the 'Introduction Guide' instead.
Besides, now that it is suggested that calls be replaced with keymap-set-after and
'keymap-set', the reference and introduction must reflect the change to the new calls.
> So I don't think we have any problems in this area, and I'm therefore
> closing this bug.
How very convenient when new users are telling you that the information is not
useful enough.
next prev parent reply other threads:[~2023-07-18 11:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-17 20:17 bug#64692: Better descriptions of Cons Cells and Dotted Notation with real-life syntax uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-18 10:32 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-18 10:36 ` Ihor Radchenko
2023-07-18 12:42 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-18 12:58 ` Christopher Dimech
2023-07-18 13:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-18 17:20 ` Drew Adams
2023-07-18 17:32 ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-18 10:54 ` Eli Zaretskii
2023-07-18 11:19 ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-07-18 17:13 ` Drew Adams
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='9mpth_kCQ9iv3_-Tk2wLiHgbpRyj12nL_rNlECoWNsqlkzrCzZDRaCABpdCQXsLyuxPVJD2dyvKlyrxzTMFPVYAfBww6lZqk8DAaWD_Kvk8=@proton.me' \
--to=bug-gnu-emacs@gnu.org \
--cc=64692-done@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=uzibalqa@proton.me \
/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).