From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: Key binding popup interface Date: Wed, 13 Dec 2017 11:18:25 -0500 Message-ID: References: <87r2s3ctxh.fsf@ericabrahamsen.net> <87d13m3jt2.fsf@gmx.us> <87efo2wf0s.fsf@ericabrahamsen.net> <87y3m8s7ym.fsf@gmx.us> <87fu8gwfbr.fsf@nicolasgoaziou.fr> <87k1xs2h0h.fsf@gmx.us> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513181961 9639 195.159.176.226 (13 Dec 2017 16:19:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 16:19:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: emacs-orgmode@gnu.org Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Wed Dec 13 17:19:17 2017 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP9ka-0002Dy-E7 for geo-emacs-orgmode@m.gmane.org; Wed, 13 Dec 2017 17:19:16 +0100 Original-Received: from localhost ([::1]:36172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP9kh-0007En-FF for geo-emacs-orgmode@m.gmane.org; Wed, 13 Dec 2017 11:19:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP9k8-0007EV-5g for emacs-orgmode@gnu.org; Wed, 13 Dec 2017 11:18:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eP9k3-0005PY-4R for emacs-orgmode@gnu.org; Wed, 13 Dec 2017 11:18:48 -0500 Original-Received: from [195.159.176.226] (port=58949 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eP9k2-0005L4-Gt for emacs-orgmode@gnu.org; Wed, 13 Dec 2017 11:18:43 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eP9js-0000Ap-5N for emacs-orgmode@gnu.org; Wed, 13 Dec 2017 17:18:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:nBXZQlUEfFd7AX0cgkzIikn6S/I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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 Original-Sender: "Emacs-orgmode" Xref: news.gmane.org gmane.emacs.orgmode:117489 gmane.emacs.devel:221005 Archived-At: > (defhydra hydra-zoom () > "zoom" > ("g" text-scale-increase "in") > ("l" text-scale-decrease "out")) > (global-set-key (kbd "C-c") 'hydra-zoom/body) But now this one suffers from other problems: - `C-h k` does not let me directly find the binding of `C-c g`. - A `C-c a` binding in a lower keymap is now made unavailable. - A `C-c a` binding in a higher keymap now makes this hydra unavailable. > In Style 1, you allow the hydra to share the "keymap space" with other > bindings not related to that hydra. > In Style 2, the hydra takes over the whole "keymap space". In above Style 2 > example, the "C-c" space is completely ruled by the hydra-zoom hydra. I want it all. Don't get me wrong: I fully understand that hydra.el works within the constraints of what Emacs provides and so it has to choose between style 1 or style 2, but if we're talking about integrating this into Emacs, then we should take the opportunity to lift those restrictions. Stefan