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.bugs Subject: bug#28550: 25.2; Hydra: First example hydra in the docs doesn't work Date: Sat, 23 Sep 2017 12:49:36 -0400 Message-ID: <87h8vtbbrz.fsf@moondust.localdomain> References: <87wp4q69lj.fsf@moondust.localdomain> <87k20qh5fr.fsf@web.de> <87vaka4gpi.fsf@moondust.localdomain> <87r2uxv13l.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1506185413 15609 195.159.176.226 (23 Sep 2017 16:50:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2017 16:50:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: Oleh Krehel , 28550@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 23 18:50:09 2017 Return-path: Envelope-to: geb-bug-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 1dvnd2-0003hx-3e for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Sep 2017 18:50:08 +0200 Original-Received: from localhost ([::1]:35549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvnd9-0006lW-80 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Sep 2017 12:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvnd0-0006jx-06 for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 12:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvncw-0007f9-St for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 12:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvncw-0007ek-OX for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dvncw-0001ZD-GP for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 12:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Sep 2017 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28550 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28550-submit@debbugs.gnu.org id=B28550.15061853865987 (code B ref 28550); Sat, 23 Sep 2017 16:50:02 +0000 Original-Received: (at 28550) by debbugs.gnu.org; 23 Sep 2017 16:49:46 +0000 Original-Received: from localhost ([127.0.0.1]:54826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvncg-0001YV-6O for submit@debbugs.gnu.org; Sat, 23 Sep 2017 12:49:46 -0400 Original-Received: from mail-io0-f195.google.com ([209.85.223.195]:33196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvnce-0001YI-Qv for 28550@debbugs.gnu.org; Sat, 23 Sep 2017 12:49:45 -0400 Original-Received: by mail-io0-f195.google.com with SMTP id j26so1154924iod.0 for <28550@debbugs.gnu.org>; Sat, 23 Sep 2017 09:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=/LlwmxyWuLoMKIob6Xsj1z+xaOE41i8zoPTWL0BknG8=; b=UFk6KKHGmRjQdZQbWtfYgdoCv4SHeockOYGYOT61S3YLK75Bi93XfaC3Of4FYtATWD fryjOtcMq2DqY5Oeb0p9vRGwsFIW0rP/F7lTGplHvaMroTayyLds5v4zJOJr5wM6nqC9 So5dTSrxL1dfGrVD3O5kSXuvYqmIJVG62R5/TA267M5S5CRbxlvHU4Gev+ZotYoAbXl2 7kp3XzlUhH3j+eDjXoa5XHAg7t21d1dsTDFuDktkFnYEcs1tBPoyVMHjs2GJ03cTObV5 xtA7t8RJL6ZkENHuAn4jdi+NONo8xHI00432UBz0pR3M1oKKWSvBza+CZiLb+g0SmyvO Cj/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=/LlwmxyWuLoMKIob6Xsj1z+xaOE41i8zoPTWL0BknG8=; b=b6gekroRg34IvX/KsA4X+CnMVAMVI1OoJ1v68Ln+yMPo8Wfm6HOk3vXuz8XbkTZ7Lq pzHZf13ldLPdSPjw+C9npKyhPsdGjwA0MlEdOCIGz9O6qTAhqxOAJyPNePrBU7Jz4OQu wPKulpC4+kcfc7mxmYaqY/d/PlU8bBCFv5ANGAKxujxcdLgEK85GvvlvCGBJpvJBwebf +kBV1aGc8jA8bAUrAmOXOOtsPVzAnUI1KwfYfA8AK6SK4p17qflV+syVznqmquoP2twO VsL5d4JvBIOyOLWdd+D36p/f3z52ZBBxm0H1kr9U74y/Fe/joZfdNQ4kqI6psMhtvNey 8JQw== X-Gm-Message-State: AHPjjUhjMgjJP4uzUSa4OWrJUvGpEYI0T5fglSMnu56ImkOb2ny6f2Nn EVIynh0KWq4l+SAXzLG7NqDipQ== X-Google-Smtp-Source: AOwi7QD5vjwf0oNpTEiT61nrnSiSpB0NU6YmB9XaVgza2VAqZcnPUpzGlxfgCBuqoqVdgktSWH8XXg== X-Received: by 10.107.107.17 with SMTP id g17mr3691544ioc.126.1506185378927; Sat, 23 Sep 2017 09:49:38 -0700 (PDT) Original-Received: from moondust.localdomain.nodomain.none ([72.143.113.194]) by smtp.gmail.com with ESMTPSA id r132sm1101613iod.50.2017.09.23.09.49.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Sep 2017 09:49:38 -0700 (PDT) In-Reply-To: <87r2uxv13l.fsf@web.de> (Michael Heerdegen's message of "Sat, 23 Sep 2017 18:19:58 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137303 Archived-At: 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 "") '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 "") ... ) form not working and/or about the doc where this is used as the first example. N.