all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>, Juri Linkov <juri@linkov.net>
Cc: 52523@debbugs.gnu.org
Subject: bug#52523: 29.0.50; defcustom :type 'key-sequence not following key-valid-p format
Date: Sun, 26 Dec 2021 08:39:54 -0800	[thread overview]
Message-ID: <CADwFkmmJUBThyzGKtByowDOxy94rw_BcM4ZnQhk_Dye-cANFwg@mail.gmail.com> (raw)
In-Reply-To: <87pmpoerrm.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> I still see no problem with 'kbd', or even 'kbd-sequence'.
>
> The problem is that we don't use the name "kbd" anywhere in the new
> keymap functions, so it'd be confusing to use them in defcustom.

I started looking into this but noticed that the docstring for
`key-valid-p' says:

    Say whether KEYS is a valid ‘kbd’ sequence.
    A ‘kbd’ sequence is a string consisting of one and more key
    strokes.  The key strokes are separated by a space character.

I guess that docstring should be updated if we don't want to settle for
the terminology "`kbd' sequence".

However, if we do that the problem is that we then risk having two
definitions of "key sequence": both the old and the new style.

See also (info "(elisp) Key Sequences"), that uses the old style.

---

Relatedly, the `define-keymap' docstring currently says:

    Create a new keymap and define KEY/DEFINITION pairs as key sequences.

Should that say "key bindings" instead of "key sequences"?  Otherwise,
it doesn't seem clear what it does.

---

`keymap-set' says:

    Set key sequence KEY to DEFINITION in KEYMAP.

So here is again the "new" style used as the definition of a key
sequence, which seems to contradict the Elisp manual.





  reply	other threads:[~2021-12-26 16:39 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15 20:35 bug#52523: 29.0.50; defcustom :type 'key-sequence not following key-valid-p format Stefan Kangas
2021-12-16 17:11 ` Juri Linkov
2021-12-19 12:15   ` Lars Ingebrigtsen
2021-12-19 13:43     ` Stefan Kangas
2021-12-19 13:54       ` Lars Ingebrigtsen
2021-12-19 17:08       ` Juri Linkov
2021-12-20  6:59         ` Stefan Kangas
     [not found]           ` <86tuf3ptcr.fsf@mail.linkov.net>
2021-12-20 10:27             ` Lars Ingebrigtsen
2021-12-21 11:19               ` Stefan Kangas
2021-12-21 18:53                 ` Juri Linkov
2021-12-22 12:41                   ` Lars Ingebrigtsen
2021-12-26 16:39                     ` Stefan Kangas [this message]
2021-12-27 12:05                       ` Lars Ingebrigtsen
2021-12-27 15:41                         ` Stefan Kangas
2021-12-28 14:32                           ` Lars Ingebrigtsen
2021-12-28  3:08                     ` Stefan Kangas
2021-12-28 12:51                       ` Eli Zaretskii
2021-12-28 14:33                         ` Lars Ingebrigtsen
2021-12-28 14:34                       ` Lars Ingebrigtsen
2022-01-02 16:00                         ` Stefan Kangas
2021-12-22  4:16 ` Richard Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmmJUBThyzGKtByowDOxy94rw_BcM4ZnQhk_Dye-cANFwg@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=52523@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.