From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 26626@debbugs.gnu.org
Subject: bug#26626: 24.5; doc of `last-command-event' and `last-nonmenu-event'
Date: Fri, 26 Jul 2019 07:30:20 -0700 (PDT) [thread overview]
Message-ID: <9b9bda4c-235c-4ac6-be33-e7468e6a15d5@default> (raw)
In-Reply-To: <87v9vpnnsc.fsf@mouse.gnus.org>
> > The essential difference in the descriptions seems to be the last input
> > event read "as part of a key sequence" versus read "as part of a
> > command". But "read as part of a command" is unclear. Does it mean
> > read by a command (e.g., by a call to `read-char' within the command
> > definition)? No. But that's all I can think of, when reading that
> > description.
> >
> > The doc of `last-nonmenu-event' is pretty clear. Or at least it is
> > before reading also the doc of `last-command-event' and trying to make
> > sense of that. Even the name of the latter is unclear - what's a
> > "command event"?
> >
> > The example given for `last-command-event' suggests that what is
> > meant is the last event in the key sequence that invoked/initiated a
> > command. I think that's closer to what the meaning/behavior is.
>
> The variable doc string isn't very helpful; no.
>
> I've now changed it to the following on the trunk:
>
> Last input event that was part of a command key sequence.
> See Info node `(elisp)Command Loop Info'.
There's no such thing as a "command key sequence",
as opposed, one imagines, to a "non-command key
sequence". A key sequence that is complete is
always bound to a command.
Or did you mean to suggest a complete key sequence,
as opposed to an incomplete sequence: a key-sequence
prefix?
There are events that are not key sequences. That
distinction is valid and important. But are there
(complete) key sequences that are not bound to keys
(including menu and mouse actions)? I don't think
so.
I still think that the text for this should borrow
from what is said for `last-nonmenu-event'. IIUC,
`last-command-event' is the "last input event read
as part of a key sequence".
IOW, same as `last-nonmenu-event', but without the
"nonmenu" part. Isn't that the essential difference?
And yes, the Info description should be changed,
not just the doc string, for the reasons given in
the bug description - "as part of a command" is
misleading or meaningless. See above for a
suggestion: make it similar to what we say for
`last-nonmenu-event'.
next prev parent reply other threads:[~2019-07-26 14:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-23 17:35 bug#26626: 24.5; doc of `last-command-event' and `last-nonmenu-event' Drew Adams
2019-07-26 9:33 ` Lars Ingebrigtsen
2019-07-26 14:30 ` Drew Adams [this message]
2019-07-26 14:49 ` Andreas Schwab
2019-07-26 15:37 ` Drew Adams
2019-07-26 14:50 ` Noam Postavsky
2019-07-26 15:46 ` Drew Adams
2019-07-26 15:50 ` Noam Postavsky
2019-07-26 15:53 ` Drew Adams
2019-07-26 21:43 ` Noam Postavsky
2019-07-27 0:25 ` 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=9b9bda4c-235c-4ac6-be33-e7468e6a15d5@default \
--to=drew.adams@oracle.com \
--cc=26626@debbugs.gnu.org \
--cc=larsi@gnus.org \
/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).