|
From: | Dmitry Gutov |
Subject: | Re: Small improvements to ruby-mode |
Date: | Fri, 09 Aug 2013 02:54:49 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 |
On 09.08.2013 01:47, Stefan Monnier wrote:
How do C-c [':" #] sound to you?The Elisp coding conventions say: • Sequences consisting of ‘C-c’ followed by a control character or a digit are reserved for major modes. • Sequences consisting of ‘C-c’ followed by ‘{’, ‘}’, ‘<’, ‘>’, ‘:’ or ‘;’ are also reserved for major modes. • Sequences consisting of ‘C-c’ followed by any other punctuation character are allocated for minor modes. Using them in a major mode is not absolutely prohibited, but if you do that, the major mode binding may be shadowed from time to time by minor modes.
Thanks. I've read this before, but the list seems pretty arbitrary.I don't know of any minor mode that uses the prefix `C-c #' (because it requires you to press Shift).
The rule says using other sequences is also allowed, so in practice, I think we'll just have a problem with, again, Rinari, which also binds `C-c '' as its prefix.
We could ask them to limit themselves to `C-c ;' by default, or, I guess, use prefix `C-c C-t' for all commands here.
[Prev in Thread] | Current Thread | [Next in Thread] |