all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 56873@debbugs.gnu.org
Subject: bug#56873: Make `defvar-keymap' warn on conflicting and redundant bindings
Date: Mon, 1 Aug 2022 16:47:10 +0000	[thread overview]
Message-ID: <CADwFkm=ioq8xYMNyun5od+MqdmYAT8by3Tk9Ff1y84HCA3iLiQ@mail.gmail.com> (raw)

Severity: wishlist

It would be useful if `defvar-keymap' could warn on conflicting
bindings, such as in:

    (defvar-keymap foo
      "a" #'next-line
      "a" #'previous-line)

It would also be useful to warn about redundant bindings, such as in:

    (defvar-keymap foo
      "a" #'next-line
      "a" #'next-line)





             reply	other threads:[~2022-08-01 16:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01 16:47 Stefan Kangas [this message]
2022-08-02  8:25 ` bug#56873: Make `defvar-keymap' warn on conflicting and redundant bindings Robert Pluim
2022-08-02  9:48   ` Lars Ingebrigtsen
2022-08-02 15:46     ` Drew Adams
2022-08-02 10:09   ` Stefan Kangas
2022-08-02 11:53     ` Robert Pluim
2022-08-02 12:01       ` Lars Ingebrigtsen
2022-08-02 12:33         ` Robert Pluim
2022-08-02 12:17       ` Stefan Kangas

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='CADwFkm=ioq8xYMNyun5od+MqdmYAT8by3Tk9Ff1y84HCA3iLiQ@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=56873@debbugs.gnu.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.