From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: Key binding popup interface Date: Tue, 12 Dec 2017 21:19:07 +0000 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: multipart/alternative; boundary="94eb2c08764e1fcd4905602b34c6" X-Trace: blaine.gmane.org 1513113619 27959 195.159.176.226 (12 Dec 2017 21:20:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 21:20:19 +0000 (UTC) Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Tue Dec 12 22:20:16 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 1eOryH-0006yb-OD for geo-emacs-orgmode@m.gmane.org; Tue, 12 Dec 2017 22:20:13 +0100 Original-Received: from localhost ([::1]:60566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOryO-0003Ew-U0 for geo-emacs-orgmode@m.gmane.org; Tue, 12 Dec 2017 16:20:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOrxS-00033X-BT for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 16:19:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOrxR-0005oK-Av for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 16:19:22 -0500 Original-Received: from mail-yw0-x236.google.com ([2607:f8b0:4002:c05::236]:33329) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOrxO-0005lG-Ip; Tue, 12 Dec 2017 16:19:18 -0500 Original-Received: by mail-yw0-x236.google.com with SMTP id k80so76713ywe.0; Tue, 12 Dec 2017 13:19:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4bMUJq7QXDg94cLKRMxBe4MPBr1+MrN6lziJLBTvyU8=; b=ha4F28iJqIdvAJYCe2tCuo/r1Jznynkat8VVJspn09APmXe6vxBV6XQAXc+qFOlYdf 2eK8rTNDQIonhsHq1QpbmkBOjcdP0LhcbOZN4wzCCVqf4hQZcfGx4JvUcDHVN0s9KdO+ kENBZcTUVQolzRNSPIJ0XDmQL043bmomLRr7As/RNoU2zktBR4IYHTYpJZb57zU2mSLK XrWsR6w88H9T6tGna+PZcOkz48DEjCxHP6gA4jm4nMCBoEtdbq7rcbQz4hDeCcHjpARq ORWfACZBlcmffOcp7k1TlbMtpc4uG+Lk543yHiRF+s2jMRG6YdztZb244NVDFWqGs6eI 7Glw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4bMUJq7QXDg94cLKRMxBe4MPBr1+MrN6lziJLBTvyU8=; b=VC4hNqpIOTU2ztytQzOSJ5rXcTG7KM0Uti4cM8VUUnHYRx7gmbXOhO5AUtuRgjEXWP OO0UaPWi01+90D8E3OpNSbarZ8ut8wId1YQ+J5nRhGB+1RIH1DBGmWDNtkzTyekqDnSU ocQjIU4647QhDjD8LLcFEt9+sVZjBpKRJbeSRAkM33CZxduF9AZwh481qQpxst8RGF3t HI6GBzt0YTywvQbalCN7PCnfdMM3ct06yXcxNVrPxlELBQXyi3PUFT25jlJLI6aBrMcX 6EJOExoyUpBsvgT9u7RKNWLScEyRWRIvW/Alqy9J4B/M6m8x2PxKCJQv0v95PAfj6HPz ZVjw== X-Gm-Message-State: AKGB3mKd+cKnNzV/qEzE/el3ccAUJj0bHz4RDEIn16fkWMy3HHnx6SI9 /8wQiOFwW24NsavKVX/jRV2wapnQuErgLiV/5mg= X-Google-Smtp-Source: ACJfBos9xrhMw1JvlhGeL/2v6KRGReP4d96PdS7s1pDzidHHC1Us2upIIw/1pYJIC16GPbF5YwrHVIqLxUtkydSJnIA= X-Received: by 10.13.232.17 with SMTP id r17mr194850ywe.396.1513113557910; Tue, 12 Dec 2017 13:19:17 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::236 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:117475 gmane.emacs.devel:220962 Archived-At: --94eb2c08764e1fcd4905602b34c6 Content-Type: text/plain; charset="UTF-8" On Tue, Dec 12, 2017 at 4:05 PM Stefan Monnier wrote: > > Problem statement: Need to have a pretty interface that shows the > available > > valid key bindings. > [...] > > Of all those options and more that I've seen out there, hydra.el looks > like > > the most elegant and *configurable* option. > > 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 have no opinion on that part, but if a part of Hydra would be useful > for other packages, then it'd be good to split it out: for me "Hydra" > means "define a Hydra via defhydra or something like that", so if you > tell me to use Hydra to "show the available valid key bindings", > I wouldn't know where to start. > I meant that use hydra to define such interfaces.. the package authors would need to use hydra to define these interfaces. All the user would need to know is to hit some X binding to get that popup interface. I quickly went though hydra.el.. isn't defhydra mainly what it is? What would you suggest splitting out of that library? -- Kaushal Modi --94eb2c08764e1fcd4905602b34c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Dec 12= , 2017 at 4:05 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Problem statement: Need to have a pretty interface that sho= ws the available
> valid key bindings.
[...]
> Of all those options and more that I've seen out there, hydra.el l= ooks like
> the most elegant and *configurable* option.

While Hydra might include the feature you're looking for, AFAICT it doe= s
something else than what you're looking for.

<= /div>
I don't follow "it does something else than what you'= ;re looking for". hydra is used to define interfaces to temporary keym= aps with well-formatted hints.

I have no opinion on that part, but if a part of Hydra would be useful
for other packages, then it'd be good to split it out: for me "Hyd= ra"
means "define a Hydra via defhydra or something like that", so if= you
tell me to use Hydra to "show the available valid key bindings",<= br> I wouldn't know where to start.

I m= eant that use hydra to define such interfaces.. the package authors would n= eed to use hydra to define these interfaces. All the user would need to kno= w is to hit some X binding to get that popup interface.

I quickly went though hydra.el.. isn't defhydra mainly what it is= ? What would you suggest splitting out of that library?
--

Kaushal Modi

--94eb2c08764e1fcd4905602b34c6--