Skip to content

agent-shell-dispatch--global-dummy is void on package load #3

Description

@velppa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions