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: Tue, 12 Dec 2017 16:48:32 -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 1513115370 2671 195.159.176.226 (12 Dec 2017 21:49:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 21:49:30 +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 Tue Dec 12 22:49:25 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 1eOsQW-0000J0-1N for geo-emacs-orgmode@m.gmane.org; Tue, 12 Dec 2017 22:49:24 +0100 Original-Received: from localhost ([::1]:60648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOsQb-0008E9-L3 for geo-emacs-orgmode@m.gmane.org; Tue, 12 Dec 2017 16:49:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOsQ0-0008E4-Si for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 16:48:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOsPx-0005Yk-P7 for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 16:48:52 -0500 Original-Received: from [195.159.176.226] (port=59795 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOsPx-0005Xq-Hk for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 16:48:49 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eOsPn-0006ok-1g for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 22:48:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:pmOCwKV89EQS3gdMMTYu7FRWc14= 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:117476 gmane.emacs.devel:220966 Archived-At: >> While Hydra might include the feature you're looking for, AFAICT it does >> something else than what you're looking for. > I don't follow "it does something else than what you're looking for". hydra > is used to define interfaces to temporary keymaps with well-formatted hints. I tend to think of Hydra as "bindings that stick around" (to take the wording on the first line of hydra.el), rather than "ways to show available bindings of the current submap". So, yes, I think it does something else (something more) than what I understand you want. And, BTW, if I take a hydra like (defhydra hydra-zoom (global-map "") "zoom" ("g" text-scale-increase "in") ("l" text-scale-decrease "out")) and I press `f6` I don't get any help in the echo area (nor in the "lv" area). I only get that help after pressing `f6 g` or `f6 l`, so I need some other mechanism to find those "initial" key bindings. So in this respect, I think it does something less than what I understand you'd want. > I quickly went though hydra.el.. isn't defhydra mainly what it is? What > would you suggest splitting out of that library? I don't know enough about it to have a clear opinion on that. Stefan