GNU bug report logs - #75380
Hyperbole menu breaks with custom keybinding

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: hyperbole; Reported by: Julian Hoch <julianhoch@HIDDEN>; Done: Mats Lidell <matsl@HIDDEN>; Maintainer for hyperbole is bug-hyperbole@HIDDEN.
bug closed, send any further explanations to 75380 <at> debbugs.gnu.org and Julian Hoch <julianhoch@HIDDEN> Request was from Mats Lidell <matsl@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 75380 <at> debbugs.gnu.org:


Received: (at 75380) by debbugs.gnu.org; 10 Jan 2025 21:57:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 10 16:57:33 2025
Received: from localhost ([127.0.0.1]:39970 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tWN0X-0002PJ-5D
	for submit <at> debbugs.gnu.org; Fri, 10 Jan 2025 16:57:33 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:47192)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <matsl@HIDDEN>) id 1tWN0U-0002P1-LE
 for 75380 <at> debbugs.gnu.org; Fri, 10 Jan 2025 16:57:31 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <matsl@HIDDEN>)
 id 1tWN0O-0007WL-UG; Fri, 10 Jan 2025 16:57:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=w5i2ThNx/2kAIYWxMSuSvoo0VYVJBpm9odkL9o9PczM=; b=eyx9hFPXq+psctmZL/NV
 w1LdpHPIB0iTxGiC6onvxRA5X70Oc+X3VefIdV4MQ+z/1bFffHPw/hFkUvAjWXRZBWjIGtQLgxPH8
 nteGJMajoX6upxOD36sjyQH8sYOYgHPd/osJu1vk1k0gQjf4CHfcU78yLUV8AI/wOUpEd88KQYYtY
 FkRoMcG9zCT57sy96I6lZexQWlfqk2xMTbxPM/EaFRbwHLLygV1GrnEH7TOg1RSuWJlbmR09pCM0i
 DWOLg+08JpOVg1+J2Ok4s1hUxhl8xqXbZfzWsax3ahjdittJOVjck0M6JTa8AceiTincG+0mCe6Lz
 BTZ0NaTJj6Seow==;
From: Mats Lidell <matsl@HIDDEN>
To: Julian Hoch <julianhoch@HIDDEN>
Subject: Re: bug#75380: Hyperbole menu breaks with custom keybinding
In-Reply-To: <yeasepxh49g.fsf@HIDDEN> (Julian Hoch's message of "Sun, 05 Jan
 2025 12:46:51 +0100")
References: <yeasepxh49g.fsf@HIDDEN>
Date: Fri, 10 Jan 2025 22:56:45 +0100
Message-ID: <87ikqmwcwy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75380
Cc: 75380 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Julian Hoch writes:
> Hi,
>
> I am encountering a bug where the Hyperbole menu does not work when you
> bind the "hyperbole" command to a custom key.  I bound it to the
> (admittedly somewhat unusual) key "S-<SF86Tools>" - simply one of the
> few unused keys that I could comfortably map on my keyboard.
> I use this code to bind the key:
>
>    (bind-key "S-<XF86Tools>" 'hyperbole)
>
> If I now open Hyperbole menu and try to get into a submenu, I get the
> following error:
>
> Debugger entered--Lisp error: (wrong-type-argument characterp S-XF86Tools)
>   hui:menu-item(69 nil nil nil (("Hy9.0.2pre>") ("Act" hui:hbut-act "Acti=
vate button at point or prompt for a labeled b...") ("Butfile/" (menu . but=
file) "Quick access button files menus.") ("Cust/" (menu . cust) "Customize=
 Hyperbole by setting major options.") ("Doc/" (menu . doc) "Quick access t=
o Hyperbole documentation.") ("Ebut/" (menu . ebut) "Explicit button comman=
ds.") ("Find/" (menu . find) "Find matching line commands.") ("Gbut/" (menu=
 . gbut) "Global button commands.") ("HyWiki/" (menu . hywiki) "HyWiki comm=
ands.") ("Ibut/" (menu . ibut) "Implicit button and button type commands.")=
 ("Kotl/" (menu . kotl) "Autonumbered outlining and hyperlink capabilities.=
") ("Msg/" (menu . msg) "Mail and News messaging capabilities.") ("Rolo/" (=
menu . hyrolo) "Hierarchical, multi-file rolo lookup and edit comm...") ("S=
creen/" (menu . screen) "Screen display management commands.") ("Win/" (men=
u . win) "Window configuration management commands.") ("historY" hhist:pop =
"Jump back to location prior to last Hyperbole butt...")))
>   ...
>
> As a workaround, I ALSO bind hyperbole to {C-h h} using
>
>    (general-define-key "C-h h" 'hyperbole)
>
> After that, the menu works again (with both bindings).
>
> However I feel this should not be necessary?
>
> I use:  Editor:      GNU Emacs 29.4 with native comp
>         Hyperbole:   9.0.2pre
>         Sys Type:    x86_64-pc-linux-gnu
>         OS Type:     gnu/linux
>         Window Sys:  x
>         News Reader: Gnus v5.13
>         Install:     melpa, 20241230.2252
> --=20
> Julian Hoch

This has been fixed with the commit 4033e96 and is available through the la=
test versions from Melpa or GNU-devel ELPA. Please git it a try.

%% Mats




Information forwarded to bug-hyperbole@HIDDEN:
bug#75380; Package hyperbole. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Jan 2025 11:47:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 06:47:26 2025
Received: from localhost ([127.0.0.1]:60194 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUP6L-0005yq-KN
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 06:47:25 -0500
Received: from lists.gnu.org ([2001:470:142::17]:42542)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <julianhoch@HIDDEN>) id 1tUP6J-0005xl-18
 for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 06:47:23 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <julianhoch@HIDDEN>) id 1tUP5w-00053z-A3
 for bug-hyperbole@HIDDEN; Sun, 05 Jan 2025 06:47:01 -0500
Received: from mout.web.de ([212.227.17.11])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <julianhoch@HIDDEN>) id 1tUP5u-0000vq-L8
 for bug-hyperbole@HIDDEN; Sun, 05 Jan 2025 06:47:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1736077613; x=1736682413; i=julianhoch@HIDDEN;
 bh=aulkbp2EBRV+qozu6Ax8MvhO3/Dcp0Z9ZutMNw9hyp0=;
 h=X-UI-Sender-Class:From:To:Subject:Date:Message-ID:MIME-Version:
 Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=Z2JEArtlRi27C/Jc1Fsr6tkXkV54E9eOJ996xVcX4jzRS2vzT676896mN5DhD2tY
 majEkujzGxJbbmWzi5Y+9KO5tV1u8yB8XFS7cNqjzfuBPGdFIzZckCoutnJUO41H/
 s3ZELd7C8UGvqxvwj3Nl364Y50xp2qCPRnH4BB5MwUW5DmDbfUJmxs3aS+bjSnD62
 mYTrzaAkjfCNgBYFEiw0f4nyiP2mF5NYkVQz+wQdu2Zkk+86g4dJfWSjOA3OpFYFm
 UN3u8WidyFskXSYPIywN+D3NakUVKb5VxSH6Wh2tkQV/0dRe+K0EypWDayk71tzy2
 uR7Z98CufG5tuWgc0g==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from localhost ([31.165.216.174]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1Md6tt-1u3Svf3O0x-00foc7 for
 <bug-hyperbole@HIDDEN>; Sun, 05 Jan 2025 12:46:52 +0100
From: Julian Hoch <julianhoch@HIDDEN>
To: bug-hyperbole@HIDDEN
Subject: Hyperbole menu breaks with custom keybinding
Date: Sun, 05 Jan 2025 12:46:51 +0100
Message-ID: <yeasepxh49g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:gxOpEgxP2xB9cbiClw7rsK8JAkPl6Ru0sSSMUkpc5GjnqZ1PIqZ
 kN2puq5OXEbXLIb7UzvyrjWs3U4wqFmMt1A8quludls/8YSR28Il7L0g6nxtiBngH8RuUxz
 9mol1I9J02pAXYQ8Pj9i8YULzluiaY55L90PjR8fURSSoxecZRREJtFk0HMppnyuGMhhtX4
 dKnvj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ONiHp/Tcyf1AWNQxMie6gLJIzHNzWI73MrRhIjDJPXMMNsOPfyLS0Fd5rK
 sykvieN9PvGLC23S84wbriLepRnK09oT9xvTF6nrTGizToTrYOVUzj4wd6qZPoOZKh1ra18NT
 zYiDONMg4=
Received-SPF: pass client-ip=212.227.17.11; envelope-from=julianhoch@HIDDEN;
 helo=mout.web.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

I am encountering a bug where the Hyperbole menu does not work when you
bind the "hyperbole" command to a custom key.  I bound it to the
(admittedly somewhat unusual) key "S-<SF86Tools>" - simply one of the
few unused keys that I could comfortably map on my keyboard.
I use this code to bind the key:

   (bind-key "S-<XF86Tools>" 'hyperbole)

If I now open Hyperbole menu and try to get into a submenu, I get the
following error:

Debugger entered--Lisp error: (wrong-type-argument characterp S-XF86Tools)
  hui:menu-item(69 nil nil nil (("Hy9.0.2pre>") ("Act" hui:hbut-act "Activa=
te button at point or prompt for a labeled b...") ("Butfile/" (menu . butfi=
le) "Quick access button files menus.") ("Cust/" (menu . cust) "Customize H=
yperbole by setting major options.") ("Doc/" (menu . doc) "Quick access to =
Hyperbole documentation.") ("Ebut/" (menu . ebut) "Explicit button commands=
.") ("Find/" (menu . find) "Find matching line commands.") ("Gbut/" (menu .=
 gbut) "Global button commands.") ("HyWiki/" (menu . hywiki) "HyWiki comman=
ds.") ("Ibut/" (menu . ibut) "Implicit button and button type commands.") (=
"Kotl/" (menu . kotl) "Autonumbered outlining and hyperlink capabilities.")=
 ("Msg/" (menu . msg) "Mail and News messaging capabilities.") ("Rolo/" (me=
nu . hyrolo) "Hierarchical, multi-file rolo lookup and edit comm...") ("Scr=
een/" (menu . screen) "Screen display management commands.") ("Win/" (menu =
. win) "Window configuration management commands.") ("historY" hhist:pop "J=
ump back to location prior to last Hyperbole butt...")))
  ...

As a workaround, I ALSO bind hyperbole to {C-h h} using

   (general-define-key "C-h h" 'hyperbole)

After that, the menu works again (with both bindings).

However I feel this should not be necessary?

I use:  Editor:      GNU Emacs 29.4 with native comp
        Hyperbole:   9.0.2pre
        Sys Type:    x86_64-pc-linux-gnu
        OS Type:     gnu/linux
        Window Sys:  x
        News Reader: Gnus v5.13
        Install:     melpa, 20241230.2252
--=20
Julian Hoch




Acknowledgement sent to Julian Hoch <julianhoch@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-hyperbole@HIDDEN. Full text available.
Report forwarded to bug-hyperbole@HIDDEN:
bug#75380; Package hyperbole. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.