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

At 17:54 +0200 on Friday 2017-09-22, Oleh Krehel wrote:
>
> 1. Remove ~/.emacs.d/elpa/hydra
> 2. Start emacs-25.2 -Q
> 3. Install hydra
> 4. Paste the code you mentioned.

At 14:56 +0200 on Saturday 2017-09-23, Oleh Krehel wrote:
>
> Please try to reproduce with my steps (especially emacs -Q and
> remove/reinstall). There's likely no reason for this code to
> stop working other than byte-compilation or config bug: it's
> worked fine for 2 months without anyone else complaining.

Hello Oleh,

Thanks for responding.

I just tried your steps above, but the problem persists.

1. I checked my ~/.emacs.d/elpa/ directory and saw there the hydra
package in ~/.emacs.d/elpa//hydra-0.14.0.

2. I went into the Emacs package manager and deleted the hydra
package.

3. I exited Emacs.

4. I checked my ~/.emacs.d/elpa/ directory and the hydra-0.14.0
directory was gone.

5. I ran Emacs -Q.

6. M-x list-packages RET

7. I went to the hydra package in the list and marked it for
installation. Then I issued the `x' command to install it.

8. I pasted the hydra body into the scratch buffer:

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

9. I did C-x C-e to evaluate it.

10. I hit F2 to run it.

I got the same results as reported in my OP.

And, again, (as mentioned in my previous post) running

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

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

here instead, works fine.

> If I can't reproduce it on my side, I can't do much.

No, that is perplexing.

Is the fact that the overlay (or text properties or whatever it
is) that is supposed to colour some of the letters red in the
hydra prompt actually gets applied at point in the *scratch*
buffer a clue?

N.






  parent reply	other threads:[~2017-09-23 17:21 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
2017-09-23 17:21         ` N. Jackson [this message]
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=87tvzt72li.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).