GNU bug report logs -
#64693
Documentation for the definition of a Menu Item
Previous Next
Reported by: uzibalqa <uzibalqa <at> proton.me>
Date: Mon, 17 Jul 2023 20:45:02 UTC
Severity: minor
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 64693 in the body.
You can then email your comments to 64693 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#64693
; Package
emacs
.
(Mon, 17 Jul 2023 20:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
uzibalqa <uzibalqa <at> proton.me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 17 Jul 2023 20:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Have been looking at the documentation for 'DEF' in 'define-key'.
(define-key KEYMAP KEY DEF &optional REMOVE)
DEF, the definition of a Menu Item is described in form as
(menu-item item-name binding . item-property-list)
Note that DEF constitutes a single list. The special
dotted notation indicates that 'item-property-list' is not
a separate list but rather enables any number of property
elements in the form of ':keyword value' within the same
list structure.
But such detail is not properly described. Pointing out how
the description of 'Cons Cells' and 'Dotted Notation' is sketchy
at best in the 'Elisp Reference Manual', and non-existent in
the 'Introduction to Programming in Emacs Lisp', the aforementioned
description should be added in the documentation of 'define-key'.
Furthermore, a more comprehensive explanation of Cons Cells, Dotted
Notation, and Backquote Construct, should be introduced and backed up
with real-life syntax such as the one described here.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Tue, 18 Jul 2023 11:04:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
uzibalqa <uzibalqa <at> proton.me>
:
bug acknowledged by developer.
(Tue, 18 Jul 2023 11:04:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 64693-done <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 17 Jul 2023 20:44:04 +0000
> From: uzibalqa via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
>
> Have been looking at the documentation for 'DEF' in 'define-key'.
>
> (define-key KEYMAP KEY DEF &optional REMOVE)
>
> DEF, the definition of a Menu Item is described in form as
>
> (menu-item item-name binding . item-property-list)
>
> Note that DEF constitutes a single list. The special
> dotted notation indicates that 'item-property-list' is not
> a separate list but rather enables any number of property
> elements in the form of ':keyword value' within the same
> list structure.
>
> But such detail is not properly described.
If you type "i property list RET" in Info, you will land in the
"Property Lists" node, which starts by saying:
A “property list” (“plist” for short) is a list of paired elements.
Each of the pairs associates a property name (usually a symbol) with a
property or value.
So I think when the manual says that item-property-list is a property
list, it does a good job.
> Furthermore, a more comprehensive explanation of Cons Cells, Dotted
> Notation, and Backquote Construct, should be introduced and backed up
> with real-life syntax such as the one described here.
This is all properly done elsewhere in the manual; see my response to
your report in bug#64692.
So I'm closing this bug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#64693
; Package
emacs
.
(Tue, 18 Jul 2023 11:36:03 GMT)
Full text and
rfc822 format available.
Message #13 received at 64693-done <at> debbugs.gnu.org (full text, mbox):
------- Original Message -------
On Tuesday, July 18th, 2023 at 11:03 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Mon, 17 Jul 2023 20:44:04 +0000
> > From: uzibalqa via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" bug-gnu-emacs <at> gnu.org
> >
> > Have been looking at the documentation for 'DEF' in 'define-key'.
> >
> > (define-key KEYMAP KEY DEF &optional REMOVE)
> >
> > DEF, the definition of a Menu Item is described in form as
> >
> > (menu-item item-name binding . item-property-list)
Looking at "23.17.1.1 Simple Menu Items" nowhere does it say that
the vector of symbols is equivalent to the sequence of keystrokes
when using keyboard bindings (key sequences).
> > Note that DEF constitutes a single list. The special
> > dotted notation indicates that 'item-property-list' is not
> > a separate list but rather enables any number of property
> > elements in the form of ':keyword value' within the same
> > list structure.
> >
> > But such detail is not properly described.
>
>
> If you type "i property list RET" in Info, you will land in the
> "Property Lists" node, which starts by saying:
>
> A “property list” (“plist” for short) is a list of paired elements.
> Each of the pairs associates a property name (usually a symbol) with a
> property or value.
Provide a cross-reference to 'property list' in "23.17.1.2 Extended Menu Items".
> So I think when the manual says that item-property-list is a property
> list, it does a good job.
>
> > Furthermore, a more comprehensive explanation of Cons Cells, Dotted
> > Notation, and Backquote Construct, should be introduced and backed up
> > with real-life syntax such as the one described here.
>
>
> This is all properly done elsewhere in the manual; see my response to
> your report in bug#64692.
>
> So I'm closing this bug.
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#64693
; Package
emacs
.
(Tue, 18 Jul 2023 12:58:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 64693-done <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 18 Jul 2023 11:35:27 +0000
> From: uzibalqa <uzibalqa <at> proton.me>
> Cc: 64693-done <at> debbugs.gnu.org
>
> > A “property list” (“plist” for short) is a list of paired elements.
> > Each of the pairs associates a property name (usually a symbol) with a
> > property or value.
>
> Provide a cross-reference to 'property list' in "23.17.1.2 Extended Menu Items".
Done, thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 16 Aug 2023 11:24:15 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.