Summary
Loading the package errors with agent-shell-dispatch--global-dummy is void, requiring a force-quit of Emacs.
Root cause
define-globalized-minor-mode at line 440 references agent-shell-dispatch--global-dummy as both the mode and turn-on function arguments, but the function is not defined until line 474. The macro needs the symbol to be fboundp at expansion time.
Reproduction
(use-package agent-shell-dispatch
:vc (:url "https://github.com/cassandracomar/agent-shell-dispatch")
:after agent-shell
:config
(agent-shell-dispatch-global-mode 1))
Restart Emacs → immediate void-variable error.
Fix
Move the defun for agent-shell-dispatch--global-dummy above the define-globalized-minor-mode form.
Environment
- Emacs 31.0.50 (macOS)
- agent-shell-dispatch @ 475fd96
🤖 Generated with Claude Code
Summary
Loading the package errors with
agent-shell-dispatch--global-dummy is void, requiring a force-quit of Emacs.Root cause
define-globalized-minor-modeat line 440 referencesagent-shell-dispatch--global-dummyas both the mode and turn-on function arguments, but the function is not defined until line 474. The macro needs the symbol to befboundpat expansion time.Reproduction
Restart Emacs → immediate void-variable error.
Fix
Move the
defunforagent-shell-dispatch--global-dummyabove thedefine-globalized-minor-modeform.Environment
🤖 Generated with Claude Code