Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error due to void variable hydra-worf-change in package dependency worf #34

Open
jchkoch opened this issue Feb 27, 2021 · 1 comment
Open

Comments

@jchkoch
Copy link

jchkoch commented Feb 27, 2021

On updating pamparam recently, I restarted Emacs to find a error is occurring in the package worf. The error seems to relate to the variable hydra-worf-change being void.

Lisp error: (void-variable hydra-worf-change)
byte-code("\306\307N\204\f\0\310\306\307\311#\210\312\313\314\10\315\211%\210\316\317\320\"\210\313\11>\204#\0\313\11B\21\11\210\321\n\322\323\324\315#\325\326\13\327\330#..." [worf-change-mode-map worf-known-verbs hydra-worf-change worf-down worf-up org-metaup worf-change-mode-hook variable-documentation put "Hook run after entering or leaving `worf-change-mo..." add-minor-mode worf-change-mode " [change]" nil mapc #f(compiled-function (x) #<bytecode 0x11f8e25>) (("j" org-metadown) ("k" org-metaup) ("h" org-metaleft) ("l" org-metaright) ("t" org-set-tags-command (:disable . worf-change-mode)) ("n" worf-change-name (:disable . worf-change-mode) :break) ("a" org-meta-return (:disable . worf-change-mode) :break)) defhydra :idle 1.0 :hint "\n^ ^ _w_ ^ ^    _t_ags    _p_rop    _r_: shiftcont..." "j" :exit t "k" "w" "s" "h" "l" "e" "f" "i" "r" "p" "t" "T" "n" "a" "o" "m" "q" "c" org-metadown org-metaleft org-metaright move-end-of-line worf-change-tree-mode worf-change-shift-mode worf-change-shiftcontrol-mode ...] 24)
  require(worf)

As I am pretty new to elisp, any advice would be helpful.

leotaku added a commit to leotaku/worf that referenced this issue Sep 4, 2021
I have noticed that, on some versions of Emacs, requiring `worf` fails with a void-variable error on `hydra-worf-change`. 
This user here abo-abo/pamparam#34 also seems to be getting the same error.

I do not fully understand why, but adding `(require 'hydra)` to the `worf.el` file has completely fixed this issue for me.
Please feel free to just close this PR if you want, as I'm not able to give a good justification of why this works.
@philohistoria
Copy link

philohistoria commented Jun 7, 2022

I am using spacemacs (development brach). After upgrading Emacs from 26.3 to 28.1 I also found the same problem.
The solution by leotaku works for me
leotaku/worf@38e901d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants