From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.help Subject: getting started with the `hydra' package from GNU Elpa -- fail with simplest example Date: Sun, 17 Sep 2017 15:58:11 -0400 Message-ID: <87lgldt7vw.fsf@moondust.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505678340 23770 195.159.176.226 (17 Sep 2017 19:59:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Sep 2017 19:59:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 17 21:58:51 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1dtfiM-0005mW-9L for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Sep 2017 21:58:50 +0200 Original-Received: from localhost ([::1]:33523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtfiT-0003gM-EH for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Sep 2017 15:58:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtfi0-0003g3-7U for help-gnu-emacs@gnu.org; Sun, 17 Sep 2017 15:58:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtfhw-0004NW-JT for help-gnu-emacs@gnu.org; Sun, 17 Sep 2017 15:58:28 -0400 Original-Received: from [195.159.176.226] (port=49961 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtfhw-0004My-Cd for help-gnu-emacs@gnu.org; Sun, 17 Sep 2017 15:58:24 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dtfhk-0004Zq-6F for help-gnu-emacs@gnu.org; Sun, 17 Sep 2017 21:58:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 57 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:Woq6p6IkDG1DJmxYTzuQcntwOF0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114295 Archived-At: 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 "") "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 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]