Re: [O] Key binding popup interface

2017-12-18 Thread John Wiegley
> "SM" == Stefan Monnier writes: SM> I have no opinion on that part, but if a part of Hydra would be useful for SM> other packages, then it'd be good to split it out: for me "Hydra" means SM> "define a Hydra via defhydra or something like that", so if you tell me to SM> use Hydra to "show the

Re: [O] Key binding popup interface

2017-12-13 Thread Robert Weiner
On Wed, Dec 13, 2017 at 10:40 AM, Kaushal Modi wrote: > On Tue, Dec 12, 2017 at 6:51 PM Robert Weiner wrote: > >> >> ​One limitation of hydra right now is that it doesn't interface with the >> standard way of showing help for key bindings since its keys aren't >> actually bound but handled via i

Re: [O] Key binding popup interface

2017-12-13 Thread Stefan Monnier
> (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

Re: [O] Key binding popup interface

2017-12-13 Thread Kaushal Modi
On Wed, Dec 13, 2017 at 1:53 AM John Wiegley wrote: > Plus, there are other, less intrusive way to achieve "show the available > valid > key bindings", such as the which-key package. > As I mentioned in a recent response to Stefan in this thread, I did a poor job with that problem statement.. I

Re: [O] Key binding popup interface

2017-12-13 Thread Kaushal Modi
On Tue, Dec 12, 2017 at 6:51 PM Robert Weiner wrote: > > ​One limitation of hydra right now is that it doesn't interface with the > standard way of showing help for key bindings since its keys aren't > actually bound but handled via internal hydra event handling. With a bit > of thought though,

Re: [O] Key binding popup interface

2017-12-13 Thread Kaushal Modi
On Tue, Dec 12, 2017 at 4:49 PM Stefan Monnier wrote: > 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

Re: [O] Key binding popup interface

2017-12-12 Thread Robert Weiner
On Tue, Dec 12, 2017 at 4:01 PM, Stefan Monnier wrote: > > > Can hydra.el be merged into Emacs core, so that all the packages can > start > > taking advantage of that? > > 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 ou

Re: [O] Key binding popup interface

2017-12-12 Thread Stefan Monnier
>> 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 o

Re: [O] Key binding popup interface

2017-12-12 Thread Kaushal Modi
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.

Re: [O] Key binding popup interface

2017-12-12 Thread Stefan Monnier
> 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

Re: [O] Key binding popup interface

2017-12-12 Thread Kaushal Modi
On Tue, Dec 12, 2017 at 3:47 PM Eric Abrahamsen wrote: > > Okay, interesting. I agree that "discoverable keymaps" and "action > dispatchers" (whatever Org and Magit do) aren't quite the same thing, > and it would be nice to have both. I guess in the meantime, though, > we're still going to have t

Re: [O] Key binding popup interface

2017-12-12 Thread Kaushal Modi
On Tue, Dec 12, 2017 at 3:20 PM Eric Abrahamsen wrote: > > Hydra definitely sounds nice, but unless I'm misunderstanding how it > works, it can't be a replacement for either Org's export interface, or > Magit's popups. Both of those can set various state variables before > choosing an actual acti

Re: [O] Key binding popup interface

2017-12-12 Thread Eric Abrahamsen
Kaushal Modi writes: > Copying this on both Emacs devel and Org mode list. Hopefully this discussion > is eligible for that. > > Problem statement: Need to have a pretty interface that shows the available > valid key bindings. > > We have something custom developed for Org export interface. M

Re: [O] Key binding popup interface

2017-12-12 Thread Alan E. Davis
I discovered accidentally some years ago, when I had been using a popup help function that I cobbled together myself with a hot key, that -F1 loads a list of bindings under that prefix. It's an awesome feature of GNU/Emacs. Alan Davis On Tue, Dec 12, 2017 at 10:56 AM, Kaushal Modi wrote: > On

Re: [O] Key binding popup interface

2017-12-12 Thread Kaushal Modi
On Tue, Dec 12, 2017 at 1:48 PM Eric S Fraga wrote: > On Tuesday, 12 Dec 2017 at 14:02, Kaushal Modi wrote: > > Copying this on both Emacs devel and Org mode list. Hopefully this > > discussion is eligible for that. > > > > Problem statement: Need to have a pretty interface that shows the > avail

Re: [O] Key binding popup interface

2017-12-12 Thread Eric S Fraga
On Tuesday, 12 Dec 2017 at 14:02, Kaushal Modi wrote: > Copying this on both Emacs devel and Org mode list. Hopefully this > discussion is eligible for that. > > Problem statement: Need to have a pretty interface that shows the available > valid key bindings. which-key-mode works well for me. --

[O] Key binding popup interface (Was: Re: Poll: new keybinding for org-insert-structure-template on org mode list)

2017-12-12 Thread Kaushal Modi
Copying this on both Emacs devel and Org mode list. Hopefully this discussion is eligible for that. Problem statement: Need to have a pretty interface that shows the available valid key bindings. We have something custom developed for Org export interface. Magit has its own popup interface. I kno