abo-abo / pamparam

Simple and fast flashcards for Emacs
229 stars 16 forks source link

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

Open jchkoch opened 3 years ago

jchkoch commented 3 years ago

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.

philohistoria commented 2 years ago

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 https://github.com/leotaku/worf/commit/38e901d3888e3a245a5cba14a061bffa1c5fd20b