unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: nljlistbox2@gmail.com (N. Jackson)
To: help-gnu-emacs@gnu.org
Subject: getting started with the `hydra' package from GNU Elpa -- fail with simplest example
Date: Sun, 17 Sep 2017 15:58:11 -0400	[thread overview]
Message-ID: <87lgldt7vw.fsf@moondust.localdomain> (raw)

Hello everyone,

Is this a suitable list for getting help with the `hydra' package
from GNU Elpa?

If not, can anyone point me to the right list?

I am running the current version of `hydra', 0.14.0, installed
(from GNU Elpa using the Emacs package manager) for the first time
today.

I'm trying to run the simplest example from the readme file for
the package [1]. I take the following steps:

0. $ emacs -Q

1. M-x package-initialize RET

2. In *scratch* type the example code from the readme:

(defhydra hydra-zoom (global-map "<f2>")
  "zoom"
  ("g" text-scale-increase "in")
  ("l" text-scale-decrease "out"))

3. C-x C-e to evaluate it

4. Hit F2 to run it

Expected behaviour:

A prompt is displayed listing `g' and `l' as possible keys;
pressing 'g' or `l' changes the font size; pressing any other key
exits the hydra.

Observed behaviour:

No prompt is displayed. Only "f2-" is displayed in the echo area.
Pressing `g' or `l' changes font size as expected and _after_
pressing either `g' or `l' at least once, a hydra prompt is
displayed and subsequently pressing any other key exits the hydra
as expected. However, if a key other than `g' of `l' is pressed
before either `g' or `l' is pressed an error message is displayed.
E.g. pressing `n' produces

  <f2> n is undefined

After the error message is printed, text typed in the buffer at
point is coloured red. [Presumably text properties or an overlay
that was meant to go in the minibuffer were applied at point.]

Any help or pointers would be much appreciated.

Thanks.
N.

[1] <https://github.com/abo-abo/hydra#sample-hydras>




             reply	other threads:[~2017-09-17 19:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-17 19:58 N. Jackson [this message]
2017-09-18  4:19 ` getting started with the `hydra' package from GNU Elpa -- fail with simplest example Marcin Borkowski
2017-09-22 15:28   ` N. Jackson

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=87lgldt7vw.fsf@moondust.localdomain \
    --to=nljlistbox2@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).