GNU bug report logs - #59903
[BUG] Unable to load hyperbole

Previous Next

Package: hyperbole;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Thu, 8 Dec 2022 12:45:02 UTC

Severity: normal

Done: rswgnu <at> gmail.com

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59903 in the body.
You can then email your comments to 59903 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Thu, 08 Dec 2022 12:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ihor Radchenko <yantar92 <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-hyperbole <at> gnu.org. (Thu, 08 Dec 2022 12:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: bug-hyperbole <at> gnu.org
Subject: [BUG] Unable to load hyperbole
Date: Thu, 08 Dec 2022 12:43:48 +0000
Hi,

I am trying to install and load hyperbole, and I am unable to do it.

Running (require 'hyperbole) yields:

Debugger entered--Lisp error: (error "Key sequence C-h h starts with non-prefix key C-h")
  (global-set-key [8 104] hyperbole)
  (hkey-initialize)
  (hyperb:init)
  (byte-code "\10\203\n\0\301 \210\202\20\0\302\303\301\304#\210\305\306!\210\307\310!\210\311\312!\207" [after-init-time hyperb:init add-hook after-init-hook t hyperbole-mode 1 makunbound hyperbole-loading provide hyperbole] 4)
  (require hyperbole)
  (eval-expression (require 'hyperbole) nil nil 127)
  (funcall-interactively eval-expression (require 'hyperbole) nil nil 127)
  (command-execute eval-expression)

Note that I have C-h re-bound to a command. It is not a prefix key in my Emacs.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Thu, 08 Dec 2022 14:07:02 GMT) Full text and rfc822 format available.

Message #8 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rswgnu <at> gmail.com>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Thu, 8 Dec 2022 09:05:55 -0500
Hi Ihor:

We’d love to have you as a Hyperbole user.  Try binding the hyperbole command to a global key before you load Hyperbole and I believe that should work.

We can add a check for your case as well, in case no binding is made.  I would recommend you try the elpa-devel version.

-- Bob

> On Dec 8, 2022, at 8:32 AM, Ihor Radchenko <yantar92 <at> posteo.net> wrote:
> 
> Hi,
> 
> I am trying to install and load hyperbole, and I am unable to do it.
> 
> Running (require 'hyperbole) yields:
> 
> Debugger entered--Lisp error: (error "Key sequence C-h h starts with non-prefix key C-h")
>  (global-set-key [8 104] hyperbole)
>  (hkey-initialize)
>  (hyperb:init)
>  (byte-code "\10\203\n\0\301 \210\202\20\0\302\303\301\304#\210\305\306!\210\307\310!\210\311\312!\207" [after-init-time hyperb:init add-hook after-init-hook t hyperbole-mode 1 makunbound hyperbole-loading provide hyperbole] 4)
>  (require hyperbole)
>  (eval-expression (require 'hyperbole) nil nil 127)
>  (funcall-interactively eval-expression (require 'hyperbole) nil nil 127)
>  (command-execute eval-expression)
> 
> Note that I have C-h re-bound to a command. It is not a prefix key in my Emacs.
> 
> -- 
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
> 
> 
> 
> _______________________________________________
> Bug-hyperbole mailing list
> Bug-hyperbole <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-hyperbole




Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Sat, 10 Dec 2022 11:05:01 GMT) Full text and rfc822 format available.

Message #11 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Robert Weiner <rswgnu <at> gmail.com>
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Sat, 10 Dec 2022 11:04:13 +0000
Robert Weiner <rswgnu <at> gmail.com> writes:

> Hi Ihor:
>
> We’d love to have you as a Hyperbole user.  Try binding the hyperbole command to a global key before you load Hyperbole and I believe that should work.

I tried

(bind-key* "C-c h" #'hyperbole)
(require 'hyperbole)

Same error.

> We can add a check for your case as well, in case no binding is made.  I would recommend you try the elpa-devel version.

I tried the Git upstream version. No difference.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Sun, 11 Dec 2022 18:37:02 GMT) Full text and rfc822 format available.

Message #14 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rsw <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Sun, 11 Dec 2022 13:36:04 -0500
[Message part 1 (text/plain, inline)]
Hi Ihor:

Please replace this function in your hyperbole.el file and see if when you
reload Hyperbole, things are good for you.  -- Bob

(defun hkey-initialize ()
  "If `hkey-init' is non-nil, initialize Hyperbole key bindings.
Some keys are conditionally bound only if there are no existing prior
bindings
of the commands."
  (when hkey-init
    ;;
    ;; Setup so Hyperbole menus can be accessed from a key.  If not
    ;; already bound to a key, this typically binds the command `hyperbole'
    ;; globally to {C-h h} and activates Hyperbole minor mode.
    (unless (or (where-is-internal #'hyperbole (current-global-map))
                (null help-char)
                (not (keymapp (lookup-key (current-global-map)
(char-to-string help-char)))))
      ;; In GNU Emacs, this binding replaces a command that shows
      ;; the word hello in foreign languages; this binding makes this
      ;; key much more useful.
      (global-set-key (vector help-char ?h) #'hyperbole))

    ;; Set C-c prefix key in hyperbole-mode-map for later key bindings
    (hkey-set-key "\C-c" (make-sparse-keymap))
    ;;
    ;; Bind the Action Key to {M-RET} and the Assist Key to {C-u M-RET}
    ;; and load the Hyperbole mouse key bindings.
    (unless (where-is-internal #'hkey-either)
      ;; Need to map all these variants to ensure can override
      ;; `org-meta-return' in Org mode when desired.
      (mapc (lambda (key) (hkey-set-key (kbd key) #'hkey-either))
            '("\M-\C-m" "M-<return>" "M-RET" "ESC <return>" "ESC RET")))
    ;;
    ;; Typically bind the key, {C-h A}, for Action Key help and {C-u C-h A}
for Assist key
    ;; help.
    (unless (where-is-internal #'hkey-help)
      (hkey-set-key (vector help-char ?A) #'hkey-help))
    ;;
    ;; Define virtual key used to activate hyperbole minor modeline menu
    ;; (hkey-set-key [hyperbole] (infodock-hyperbole-menu t))
    ;;
    ;; Provide a site standard way of emulating most Hyperbole mouse drag
    ;; commands from the keyboard.  This is most useful for rapidly creating
    ;; Hyperbole link buttons from the keyboard without invoking the
Hyperbole
    ;; menu.  Works only if Hyperbole is run under a window system.
    (when (hyperb:window-system)
      (if (eq (global-key-binding "\M-o") #'facemenu-keymap)
          ;; Override facemenu package that adds a keymap on M-o,
          ;; since this binding is more important to Hyperbole
          ;; users.
          (hkey-set-key "\M-o" #'hkey-operate)
        (hkey-maybe-set-key "\M-o" #'hkey-operate)))
    ;;
    ;; Explicit button renames without invoking the Hyperbole menu.
    ;; No binding by default.
    ;; Don't override prior bindings of this key.
    ;; (hkey-maybe-set-key "\C-cr" #'hui:ebut-rename)
    ;;
    ;; Bind {C-c RET} to select larger and larger syntactical units in a
    ;; buffer when invoked repeatedly, showing in the minibuffer the type
    ;; of unit selected each time.
    (hkey-maybe-set-key "\C-c\C-m" #'hui-select-thing)
    ;;
    ;; Override the {M-w} command from "simple.el" when hyperbole-mode is
active
    ;; to allow copying delimited things, kcell references or regions to
the kill ring.
    (hkey-set-key [remap kill-ring-save] #'hui-kill-ring-save)
    ;;
    ;; Override the {C-x r s} command from "register.el" when
hyperbole-mode is active
    ;; to allow copying delimited things, kcell references or regions to a
register.
    (hkey-set-key "\C-xrs" #'hui-copy-to-register)
    ;;
    ;; Bind {C-c @} to create a user-specified sized grid of windows
    ;; displaying different buffers.
    ;;
    ;; Don't override prior bindings of this key.
    (hkey-maybe-set-key "\C-c@" #'hycontrol-windows-grid)
    ;;
    ;; Bind {C-c \} to interactively manage windows and frames.
    (hkey-maybe-set-key "\C-c\\" #'hycontrol-enable-windows-mode)
    ;;
    ;; Bind {C-c /} to display the Hyperbole Find/Web search menu.
    (hkey-maybe-set-key "\C-c/" #'hui-search-web)
    ;;
    ;; Bind {C-c .} to jump between the start and end of a delimited thing.
    ;; Don't override prior bindings of this key.
    (hkey-maybe-set-key "\C-c." #'hui-select-goto-matching-delimiter)
    ;;
    ;; Initialize the Smart Mouse Key bindings.  Shifted mouse buttons
    ;; are always set up.  Under InfoDock or with `hmouse-middle-flag'
    ;; non-nil, also bind the middle mouse button to the Action Key.
    ;; These bindings are ignored if a particular frame does not have mouse
    ;; support.
    (hmouse-install hmouse-middle-flag)
    ;;
    ;; Make a double or triple click of the left mouse button do the
    ;; same thing as {C-c RET}.  It also sets up Java, C++ and HTML modes
    ;; for proper entity selection.
    (hui-select-initialize)))

On Sat, Dec 10, 2022 at 6:04 AM Ihor Radchenko <yantar92 <at> posteo.net> wrote:

> Robert Weiner <rswgnu <at> gmail.com> writes:
>
> > Hi Ihor:
> >
> > We’d love to have you as a Hyperbole user.  Try binding the hyperbole
> command to a global key before you load Hyperbole and I believe that should
> work.
>
> I tried
>
> (bind-key* "C-c h" #'hyperbole)
> (require 'hyperbole)
>
> Same error.
>
> > We can add a check for your case as well, in case no binding is made.  I
> would recommend you try the elpa-devel version.
>
> I tried the Git upstream version. No difference.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Mon, 12 Dec 2022 08:38:01 GMT) Full text and rfc822 format available.

Message #17 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: rswgnu <at> gmail.com
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Mon, 12 Dec 2022 08:37:24 +0000
Robert Weiner <rsw <at> gnu.org> writes:

> Please replace this function in your hyperbole.el file and see if when you
> reload Hyperbole, things are good for you.  -- Bob
>
> (defun hkey-initialize ()
> ...

I tried, but I am getting the same error.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Mon, 12 Dec 2022 08:50:02 GMT) Full text and rfc822 format available.

Message #20 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: rswgnu <at> gmail.com
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Mon, 12 Dec 2022 08:49:00 +0000
Ihor Radchenko <yantar92 <at> posteo.net> writes:

> I tried, but I am getting the same error.

Never mind. Hyperbole did load after replacing the suggested function in
hyperbole sources. I just needed to remove spurious newlines added in
the email.

Now, I am getting a different error when trying to use action key:

Debugger entered--Lisp error: (invalid-regexp "Unmatched ) or \\)")
  (hpath:remote-at-p)
  (hpath:at-p)
  (ibtypes::pathname)
  (ibut:at-p)
  (hbut:at-p)
  (hkey-execute nil)
  (action-key-internal)
  (action-key)
  (funcall-interactively action-key)
  (command-execute action-key)

If necessary, I can report it in a separate thread.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Tue, 13 Dec 2022 01:12:02 GMT) Full text and rfc822 format available.

Message #23 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rswgnu <at> gmail.com>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Mon, 12 Dec 2022 20:11:36 -0500
Please send the relevant part of your config where you change the C-h binding and where you setup Hyperbole together with your Emacs version and Hyperbole version and we’ll replicate things to test.  Thanks.

-- Bob

> On Dec 12, 2022, at 3:49 AM, Ihor Radchenko <yantar92 <at> posteo.net> wrote:
> 
> Ihor Radchenko <yantar92 <at> posteo.net> writes:
> 
>> I tried, but I am getting the same error.
> 
> Never mind. Hyperbole did load after replacing the suggested function in
> hyperbole sources. I just needed to remove spurious newlines added in
> the email.
> 
> Now, I am getting a different error when trying to use action key:
> 
> Debugger entered--Lisp error: (invalid-regexp "Unmatched ) or \\)")
>  (hpath:remote-at-p)
>  (hpath:at-p)
>  (ibtypes::pathname)
>  (ibut:at-p)
>  (hbut:at-p)
>  (hkey-execute nil)
>  (action-key-internal)
>  (action-key)
>  (funcall-interactively action-key)
>  (command-execute action-key)
> 
> If necessary, I can report it in a separate thread.
> 
> -- 
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Thu, 15 Dec 2022 12:01:02 GMT) Full text and rfc822 format available.

Message #26 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Robert Weiner <rswgnu <at> gmail.com>
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Thu, 15 Dec 2022 11:59:55 +0000
Robert Weiner <rswgnu <at> gmail.com> writes:

> Please send the relevant part of your config where you change the C-h binding and where you setup Hyperbole together with your Emacs version and Hyperbole version and we’ll replicate things to test.  Thanks.

This appears to be unrelated:

Minimal config:

(add-to-list 'load-path "~/.emacs.d/straight/repos/hyperbole/")
(require 'hyperbole)

1. emacs -Q -l minimal.el
2. Go to the beginning of *scratch* buffer
3. M-x action-key <RET>
4. Observe "and: Invalid regexp: "Unmatched ) or \\)""

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Sun, 08 Jan 2023 18:21:02 GMT) Full text and rfc822 format available.

Message #29 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rsw <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Sun, 8 Jan 2023 13:20:18 -0500
[Message part 1 (text/plain, inline)]
Hi Ihor:

Glad you got Hyperbole going in general.  With regard to this unrelated
issue, we have added a fix available in tomorrow's pre-release of Hyperbole
(get it from elpa-devel or the savannah git repo) that I believe resolves
this issue.  I'm going to close this issue now and if you see any errors
after a reload tomorrow, then let us know.

On Thu, Dec 15, 2022 at 6:59 AM Ihor Radchenko <yantar92 <at> posteo.net> wrote:

> Robert Weiner <rswgnu <at> gmail.com> writes:
>
> > Please send the relevant part of your config where you change the C-h
> binding and where you setup Hyperbole together with your Emacs version and
> Hyperbole version and we’ll replicate things to test.  Thanks.
>
> This appears to be unrelated:
>
> Minimal config:
>
> (add-to-list 'load-path "~/.emacs.d/straight/repos/hyperbole/")
> (require 'hyperbole)
>
> 1. emacs -Q -l minimal.el
> 2. Go to the beginning of *scratch* buffer
> 3. M-x action-key <RET>
> 4. Observe "and: Invalid regexp: "Unmatched ) or \\)""
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Sun, 08 Jan 2023 18:23:02 GMT) Full text and rfc822 format available.

Message #32 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rsw <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: Emacs Bug <control <at> debbugs.gnu.org>, 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Sun, 8 Jan 2023 13:21:42 -0500
[Message part 1 (text/plain, inline)]
close 59903
[Message part 2 (text/html, inline)]

bug closed, send any further explanations to 59903 <at> debbugs.gnu.org and Ihor Radchenko <yantar92 <at> posteo.net> Request was from Robert Weiner <rsw <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 08 Jan 2023 18:23:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-hyperbole <at> gnu.org:
bug#59903; Package hyperbole. (Sun, 08 Jan 2023 18:27:01 GMT) Full text and rfc822 format available.

Message #37 received at 59903 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rsw <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 59903 <at> debbugs.gnu.org
Subject: Re: bug#59903: [BUG] Unable to load hyperbole
Date: Sun, 8 Jan 2023 13:26:00 -0500
[Message part 1 (text/plain, inline)]
Hi Ihor:

Remember to enable the Hyperbole global minor mode after requiring it in
your init with:
   (hyperbole-mode 1)

-- Bob

On Thu, Dec 15, 2022 at 6:59 AM Ihor Radchenko <yantar92 <at> posteo.net> wrote:

> Robert Weiner <rswgnu <at> gmail.com> writes:
>
> > Please send the relevant part of your config where you change the C-h
> binding and where you setup Hyperbole together with your Emacs version and
> Hyperbole version and we’ll replicate things to test.  Thanks.
>
> This appears to be unrelated:
>
> Minimal config:
>
> (add-to-list 'load-path "~/.emacs.d/straight/repos/hyperbole/")
> (require 'hyperbole)
>
> 1. emacs -Q -l minimal.el
> 2. Go to the beginning of *scratch* buffer
> 3. M-x action-key <RET>
> 4. Observe "and: Invalid regexp: "Unmatched ) or \\)""
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Feb 2023 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 80 days ago.

Previous Next


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