From: "Drew Adams" <drew.adams@oracle.com>
To: "'Oleksandr Gavenko'" <gavenkoa@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Are there exist any registry for reserved key binding?
Date: Sat, 12 Nov 2011 06:51:50 -0800 [thread overview]
Message-ID: <3FB7D2ED9D7D47CCBFB2C3434A1186EA@us.oracle.com> (raw)
In-Reply-To: <8762ipv9d1.fsf@gmail.com>
> > (elisp) `Key Binding Conventions'
>
> So any major/minor mode designer MUST follow this rules.
No, there is no MUST. There is no code-convention police.
Judgment is by code users, not tribunal. Users include individuals and other
code (e.g. libraries).
The reason for such conventions is to help make it easier for different bits of
code to get along together peacefully. And to make it easier for users to use
such code.
> 'jabber-keymap.el': So this package define 'C-x C-j' globally.
Did you see any guideline at (elisp) `Key Binding Conventions' that says please
do not bind a key in the `C-x' keymap? AFAIK, that is not proscribed.
> If another package use this key binding user must resolve
> conflict manually?
Guess so.
If you find what you think to be a mismatch wrt the suggested coding conventions
(they are guidelines, not enforced laws), consider reporting it to the code's
author/maintainer as a possible bug. S?he will most likely appreciate it, if it
truly goes against the guidelines.
> Are there any guide to avoid conflicts?
Just the suggested conventions, AFAIK.
> My suggestion is to check most popular packages and make some
> thing different key bindings. But globally maintained key
> binding registry make life much easy...
Consider sending your suggestion as an Emacs enhancement request, via `M-x
report-emacs-bug' (that is for enhancement requests, in addition to bugs). Or
bring up your suggestion on the Emacs development list, emacs-devel@gnu.org.
(help-gnu-emacs@gnu.org is for help with GNU Emacs.)
But keep this in mind, if it helps: Emacs has been around for 35 years or so.
This kind of thing has been dealt with by thousands of users and code libraries
over the decades. That's not to say that you might not have a better idea, but
it might give you some perspective on the problem you feel you've discovered.
prev parent reply other threads:[~2011-11-12 14:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 23:33 Are there exist any registry for reserved key binding? Oleksandr Gavenko
2011-11-11 23:45 ` Drew Adams
2011-11-12 0:03 ` Drew Adams
2011-11-12 12:00 ` Oleksandr Gavenko
2011-11-12 14:51 ` Drew Adams [this message]
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=3FB7D2ED9D7D47CCBFB2C3434A1186EA@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=gavenkoa@gmail.com \
--cc=help-gnu-emacs@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.
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).