emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64692: closed (Better descriptions of Cons Cells and Dotted Notation


From: GNU bug Tracking System
Subject: bug#64692: closed (Better descriptions of Cons Cells and Dotted Notation with real-life syntax)
Date: Tue, 18 Jul 2023 10:34:02 +0000

Your message dated Tue, 18 Jul 2023 18:32:55 +0800
with message-id <87jzux5x2g.fsf@yahoo.com>
and subject line Re: bug#64692: Better descriptions of Cons Cells and Dotted 
Notation with real-life syntax
has caused the debbugs.gnu.org bug report #64692,
regarding Better descriptions of Cons Cells and Dotted Notation with real-life 
syntax
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
64692: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64692
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Better descriptions of Cons Cells and Dotted Notation with real-life syntax Date: Mon, 17 Jul 2023 20:17:19 +0000
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.  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.

For instance, whilst it cam became natural for users to make menus. it would be 
difficult for them to understand that 

(menu-item item-name real-binding . item-property-list)

describes how "item-property-list" would not produce a list inside a list, but 
a 
single "(menu-item ..." list.

In general, the construction of menus should be better described as it is 
currently 
too theoretical in the reference.



--- End Message ---
--- Begin Message --- Subject: Re: bug#64692: Better descriptions of Cons Cells and Dotted Notation with real-life syntax Date: Tue, 18 Jul 2023 18:32:55 +0800 User-agent: Gnus/5.13 (Gnus v5.13)
uzibalqa <uzibalqa@proton.me> writes:

> 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.  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.
>
> For instance, whilst it cam became natural for users to make menus. it would 
> be 
> difficult for them to understand that 
>
> (menu-item item-name real-binding . item-property-list)
>
> describes how "item-property-list" would not produce a list inside a list, 
> but a 
> single "(menu-item ..." list.
>
> In general, the construction of menus should be better described as it is 
> currently 
> too theoretical in the reference.

The node containing your example is located in the Emacs Lisp reference
manual, which contains two adequate descriptions of both dotted lists
and dotted pair notation.  I see no problem here; closing.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]