From mboxrd@z Thu Jan 1 00:00:00 1970 From: Drew Adams Subject: bug#28263: bug#28263: 24.5; Org: `C-c LETTER' keys Date: Wed, 6 Dec 2017 07:23:07 -0800 (PST) Message-ID: References: <936768a0-1a2e-4a89-8a11-8f1779f8591d@default> <87374qb21u.fsf@nicolasgoaziou.fr> <0f47b7da-82d7-4521-aaf6-f2430876ccc2@default> <87h8t59zxg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMbYL-0001ax-Bf for emacs-orgmode@gnu.org; Wed, 06 Dec 2017 10:24:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMbYI-0007oL-57 for emacs-orgmode@gnu.org; Wed, 06 Dec 2017 10:24:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMbYI-0007o2-0y for emacs-orgmode@gnu.org; Wed, 06 Dec 2017 10:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eMbYH-0005DP-NI for emacs-orgmode@gnu.org; Wed, 06 Dec 2017 10:24:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Allen Li Cc: Nicolas Goaziou , 28263-done@debbugs.gnu.org > Could you summarize how you think the situation could be improved in > one or two sentences? >=20 > I think what you are trying to say is, Org mode should make global > key bindings for some commands. No. I'm saying that Org should not suggest that users bind keys that are reserved for use by users to Org commands. And it should not then present those keys in the doc. And it should not say anything about the doc using those keys for illustrative purposes or assuming that users have bound those keys. Org should do _nothing_ with such reserved keys. It should not mention them at all in its doc. If Org wants to recommend or suggest that users bind some particular commands to keys, including to prefix keys, it can do that. But don't mention any particular keys (preferably), and certainly do not suggest using any particular keys. *IF* Org feels that certain commands should definitely be bound globally *THEN* (1) it should present that as a concrete proposal to emacs-devel for consideration and (2) if agreed on, Org should just bind those keys globally. That's Org's decision. I'm not in any way suggesting that Org should bind global keys. In fact, I hope it does not do so. But I can't decide what's best for everyone here. Maybe some global keys should be sacrificed for Org. I doubt it, but maybe Emacs Dev would decide that that's appropriate. What Org does now is, IMO, a shame-faced way of getting a bunch of keys bound globally for its purposes, without actually binding them. And what's more, the keys in question are keys that are always reserved for users. That's not right. > However, this is problematic because there are pretty much no global > keys available that are not reserved for major modes, minor modes, or > the user, Tough. We're all in that boat. (And anyway, it's not true in such absolute terms.) That's the whole point of reserving keys - to prevent things like Org from gobbling them all up. And nothing prevents Org from defining a minor mode that it intends all Org users to use all the time - in effect providing a whole new space for its "global" key bindings. (Not `org-mode', of course, if you want the keys available even when Org mode is turned off.) > and at any rate I don=E2=80=99t think we could justify binding > global keys by default since Org mode is a pretty small application > within Emacs. calendar.el does not have a global key. remember.el > does not have a global key. et cetera. Org mode is no different. Exactly. Please follow their example: Don't suggest to users to bind keys reserved to them to Org commands. > If we make an Org minor mode, that=E2=80=99s really no better than the us= er > just binding his own keys vs turning on the minor mode. Defining such a minor mode is exactly the way to go, to get pretty much global behavior without locking in keys to the absolutely global `global-map'. Turning on a minor mode that binds keys in its keymap _is_ a bit like binding your own keys globally. The difference is that they are not bound globally. In both cases the user makes the choice. But in one case the user does not (and ALL users do not) sacrifice the global keys reserved for users. Turn the mode on to get its bindings. Turn it off to be rid of its bindings. That's the clean Emacs way to handle such things. Sneakily recommending to users that they bind keys reserved for users to Org commands is not right. It's not fair to users, most of all. And it's not fair to other modes and the rest of Emacs. You might say it's "orgocentric". > Also, the > reserved minor mode keys are not very good (hard to press), and they > can conflict with other minor modes, which is probably undesirable for > Org users. Tough. We all live with it. Emacs is not only for Org. And in any case, you can put any number of keys on a prefix key. And there are plenty of prefix keys that are not reserved for users. > Is your complaint simply that we suggest a key for the user to bind? See above. If you take the approach of suggesting a key to bind, it should not be a key that is reserved for users. This really shouldn't be hard to understand. Please see how other packages/modes deal with it. Yes, key sequences are a limited resource. For _all_ of us. For all of Emacs and for all users. If Org is just starting to realize this and play fair then it's about time.