unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: nljlistbox2@gmail.com (N. Jackson)
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Oleh Krehel <ohwoeowho@gmail.com>, 28550@debbugs.gnu.org
Subject: bug#28550: 25.2; Hydra: First example hydra in the docs doesn't work
Date: Sat, 23 Sep 2017 12:49:36 -0400	[thread overview]
Message-ID: <87h8vtbbrz.fsf@moondust.localdomain> (raw)
In-Reply-To: <87r2uxv13l.fsf@web.de> (Michael Heerdegen's message of "Sat, 23 Sep 2017 18:19:58 +0200")

At 18:19 +0200 on Saturday 2017-09-23, Michael Heerdegen wrote:
>
> As far as I understand the definition of `defhydra', the example won't
> do what the OP expects unless you additionally eval
>
>   (global-set-key [f2] 'hydra-zoom/body)
>
> Without that, the hydra hinting kicks in only after you have hit another
> hydra key after hitting the prefix key.

Indeed. When I asked about this on the Emacs Help list a few days
ago, Marcin Borkowski pointed that out, and indeed, as I mentioned
there, following this suggestion I tried:

  (defhydra hydra-zoom ()
    "zoom"
    ("g" text-scale-increase "in")
    ("l" text-scale-decrease "out"))

  (global-set-key (kbd "<f2>") 'hydra-zoom/body)

and this does work just fine. :)

Sorry. I should have mentioned that in this bug report.

So this bug report is about the

  (defhydra hydra-zoom (global-map "<f2>") ... )

form not working and/or about the doc where this is used as the
first example.

N.






  reply	other threads:[~2017-09-23 16:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-22 15:23 bug#28550: 25.2; Hydra: First example hydra in the docs doesn't work N. Jackson
2017-09-22 15:54 ` Oleh Krehel
2017-09-22 19:57   ` Michael Heerdegen
2017-09-22 20:32     ` N. Jackson
2017-09-23 12:56       ` Oleh Krehel
2017-09-23 16:19         ` Michael Heerdegen
2017-09-23 16:49           ` N. Jackson [this message]
2017-09-23 17:21         ` N. Jackson
2018-01-28 20:29           ` Noam Postavsky
2018-01-31 15:56             ` Oleh Krehel
2019-04-19  2:19               ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8vtbbrz.fsf@moondust.localdomain \
    --to=nljlistbox2@gmail.com \
    --cc=28550@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    --cc=ohwoeowho@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).