Skip to content

Stop warning about a missing native module at load time - #733

Merged
dakra merged 1 commit into
mainfrom
fix/no-load-time-missing-module-warning
Oct 12, 2026
Merged

dakra merged 1 commit into
mainfrom
fix/no-load-time-missing-module-warning

Conversation

@dakra

@dakra dakra commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Loading ghostel.el with no module file logged a "Native module not found" warning. Byte-compiling the package at install time evaluates the (require 'ghostel) in the sibling files, so every fresh package.el install left that warning in *Warnings* before the user ever ran M-x ghostel. Verified with a clean package-install-file of a MELPA-style tarball into an empty package-user-dir: two copies of the warning before, none after.

The warning cannot be acted on at load time anyway: the interactive entry points pass PROMPT-USER and install the module through ghostel-module-auto-install. ghostel--load-module now stays silent when the file is missing and PROMPT-USER is nil. The stale-module and load-failure warnings are unchanged.

Callers that load without PROMPT-USER and then use the module (ghostel-desktop, ghostel-comint) keep failing loudly when the module is absent, only without the install hint.

Closes #731

Loading `ghostel.el' with no module file logged "Native module not
found" via `display-warning'.  Byte-compiling the package at install
time evaluates the `(require 'ghostel)' in the sibling files, so every
fresh package.el install left that warning in `*Warnings*' before the
user ever ran `M-x ghostel'.  The warning cannot be acted on at load
time anyway: the interactive entry points pass PROMPT-USER and install
the module through `ghostel-module-auto-install'.

`ghostel--load-module' now stays silent when the file is missing and
PROMPT-USER is nil.  The stale-module warning is unchanged.

Closes #731
@dakra
dakra merged commit bc3c771 into main Oct 12, 2026
33 checks passed
@dakra
dakra deleted the fix/no-load-time-missing-module-warning branch October 12, 2026 09:45

This branch was previously deployed

1 inactive deployment
github-pages — bc3c7712 Deployed Oct 12, 2026 by dakra via deploy #212
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

Successfully merging this pull request may close these issues.

How to prevent Run M-x ghostel-download-module on use-package bootstrap?

1 participant