diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-15 02:21:57 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-15 02:21:57 -0500 |
| commit | 3d9420c7f015101d60ef6949e96e0e24ada1af52 (patch) | |
| tree | df52b238ae17c185138c3023cd21b00ac072f7e6 /modules/httpd-config.el | |
| parent | e44e15199b8d2baabb9e9b302a5438b5d65a3491 (diff) | |
| download | dotemacs-3d9420c7f015101d60ef6949e96e0e24ada1af52.tar.gz dotemacs-3d9420c7f015101d60ef6949e96e0e24ada1af52.zip | |
fix(ai-vterm): autoload cj/toggle-gptel to silence cross-module warning
make compile warned that cj/toggle-gptel is not known to be defined
when ai-vterm.el is byte-compiled. The M-F9 binding still worked
during normal startup because init.el loads ai-config.el after
ai-vterm.el, but the dependency was implicit -- byte-compile saw the
function symbol unresolved, and loading ai-vterm.el in isolation
left M-F9 bound to an undefined function.
Declare cj/toggle-gptel as an interactive autoload pointing at
ai-config. This silences the warning, keeps ai-vterm.el free of a
load-time (require 'ai-config), and makes the load-order contract
explicit: the binding works as long as ai-config eventually loads.
Test asserts that requiring ai-vterm in isolation leaves
cj/toggle-gptel fboundp as an autoload sigil (not a real function).
A regression that adds (require 'ai-config) at the top of
ai-vterm.el would flip this, and a regression that drops the
autoload form would leave fboundp nil.
Diffstat (limited to 'modules/httpd-config.el')
0 files changed, 0 insertions, 0 deletions
