From: Dmitry Gutov <dgutov@yandex.ru>
To: Gregory Heytings <gregory@heytings.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: PROPOSAL: Repurpose one key and reserve it for third-party packages
Date: Mon, 15 Feb 2021 21:55:48 +0200 [thread overview]
Message-ID: <88c516e7-be60-7d30-02b5-81be98ba6f5c@yandex.ru> (raw)
In-Reply-To: <51e726ab00fb8c3c28be@heytings.org>
On 15.02.2021 21:01, Gregory Heytings wrote:
>
> [Re-attaching this to another thread.]
>
>>
>> Freeing 'C-z' up, for example, won't help most authors anyway.
>>
>
> Why not? Could you perhaps elaborate?
In case it was not apparent from the preceding discussion: it's a
contentious binding, and even if I was not using it myself, I should
have been aware that a significant number of Emacs users already bind
that key in their init scripts (to 'undo' or 'undo-tree-undo', I mean).
Or use the default binding often, as some of the regulars here report.
As a package author, I would make an effort to choose a binding that is
more likely to be unoccupied in all my users' configs. Or be, you know,
free-able, which 'C-z' likely isn't.
>> I have some doubts that we'll be able to free up nice enough key
>> bindings that third-party packages will all want to use.
>>
>
> What would be, for you, a nice enough key binding?
Some examples:
- diff-hl adds some bindings under the 'C-x v' map because it is
intended as an extension of VC.
- company doesn't add any global bindings, but has a number of them
inside company-active-map (when completion is ongoing) and also
recommends the user choosew a binding for `company-complete`. I use
'C-/', personally.
- rspec-mode uses 'C-c ,' as the default keymap prefix but makes it
customizable via a variable.
- robe uses a number of bindings reminiscent of SLIME. These days I
should migrate some of them to the xref package, and the rest ('C-c C-d'
most prominently) keep as-is. Could have migrated to Eldoc, but that one
is moving in a weird direction lately.
>> And even if that happens, collisions between externally maintained
>> packages can happen just as well. There is no foolproof solution.
>>
>
> That's unavoidable, but still much better for newcomers than the current
> situation. And there are ways to handle such collisions, which should
> be rare if the number of available keys is large enough, in a
> user-friendly way.
FTR, I don't support the recent addition of bindings on 'C-x x', in part
because those commands don't seem essential to me. But for the same
reason I don't see a problem with any third-party mode continuing to use
'C-x x' as its keymap prefix.
next prev parent reply other threads:[~2021-02-15 19:55 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-15 19:01 PROPOSAL: Repurpose one key and reserve it for third-party packages Gregory Heytings
2021-02-15 19:55 ` Dmitry Gutov [this message]
[not found] <7ef75c33936136eb3a20@heytings.org>
[not found] ` <8735y56naf.fsf@posteo.net>
[not found] ` <8ed9b43502ae9a36b057@heytings.org>
[not found] ` <87tuqk6d9d.fsf@posteo.net>
[not found] ` <3966473cc1ab9f104724@heytings.org>
2021-02-10 23:35 ` Philip K.
2021-02-11 8:45 ` Gregory Heytings
2021-02-11 13:53 ` Philip K.
2021-02-11 15:47 ` Philip K.
2021-02-11 15:59 ` Gregory Heytings
2021-02-11 16:20 ` Philip K.
2021-02-11 17:48 ` Gregory Heytings
2021-02-11 18:34 ` Philip K.
2021-02-11 21:15 ` Gregory Heytings
2021-02-11 22:48 ` Philip K.
2021-02-12 0:01 ` Gregory Heytings
2021-02-12 10:27 ` Philip K.
2021-02-12 11:59 ` Gregory Heytings
2021-02-12 13:23 ` Philip K.
2021-02-12 13:54 ` Gregory Heytings
2021-02-12 14:09 ` Philip Kaludercic
2021-02-12 16:04 ` Gregory Heytings
2021-02-12 17:25 ` Philip Kaludercic
2021-02-12 17:54 ` Gregory Heytings
2021-02-12 18:16 ` Philip Kaludercic
2021-02-12 21:48 ` Gregory Heytings
2021-02-13 0:37 ` Philip Kaludercic
2021-02-13 8:33 ` Gregory Heytings
2021-02-13 9:09 ` Philip Kaludercic
2021-02-13 13:06 ` Gregory Heytings
2021-02-13 14:28 ` Philip Kaludercic
2021-02-13 15:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-13 16:08 ` Philip Kaludercic
2021-02-13 15:02 ` Gregory Heytings
2021-02-13 15:21 ` Jean Louis
2021-02-13 15:28 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-13 20:14 ` Philip Kaludercic
2021-02-13 20:58 ` Jean Louis
2021-02-13 21:18 ` Gregory Heytings
2021-02-13 21:32 ` Philip Kaludercic
2021-02-13 10:05 ` Jean Louis
2021-02-13 8:24 ` Jean Louis
2021-02-13 12:44 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-13 14:26 ` Jean Louis
2021-02-13 15:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-13 15:24 ` Jean Louis
2021-02-13 15:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-13 15:45 ` Jean Louis
2021-02-12 4:45 ` Robert Thorpe
2021-02-12 9:58 ` Philip K.
2021-02-11 16:59 ` Leo Butler
-- strict thread matches above, loose matches on Subject: below --
2021-02-08 10:02 Gregory Heytings
2021-02-08 16:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-08 22:01 ` Francis Belliveau
2021-02-09 0:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-10 22:54 ` Francis Belliveau
2021-02-09 6:31 ` Jean Louis
2021-02-09 9:13 ` Gregory Heytings
2021-02-10 11:17 ` Jean Louis
2021-02-09 17:13 ` [External] : " Drew Adams
2021-02-09 17:49 ` Gregory Heytings
2021-02-09 18:12 ` Drew Adams
2021-02-09 19:23 ` Gregory Heytings
2021-02-09 20:52 ` [External] : " Drew Adams
2021-02-09 21:15 ` Gregory Heytings
2021-02-09 21:47 ` [External] : " Drew Adams
2021-02-10 11:07 ` Gregory Heytings
2021-02-10 9:05 ` Robert Thorpe
2021-02-10 14:42 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-10 14:59 ` Gregory Heytings
2021-02-09 8:13 ` Marcin Borkowski
2021-02-09 9:13 ` Gregory Heytings
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=88c516e7-be60-7d30-02b5-81be98ba6f5c@yandex.ru \
--to=dgutov@yandex.ru \
--cc=gregory@heytings.org \
--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).