Skip to content

Silence byte compile warnings#882

Merged
matsl merged 1 commit intomasterfrom
pr_fix_byte_compile_warnings
Mar 3, 2026
Merged

Silence byte compile warnings#882
matsl merged 1 commit intomasterfrom
pr_fix_byte_compile_warnings

Conversation

@matsl
Copy link
Collaborator

@matsl matsl commented Mar 2, 2026

What

Silence byte compile warnings.

  • hywiki.el (consult--async-command):
    (consult--lookup-member):
    (consult--read): Declare functions.

Why

Compilation should be clean and silent.

@matsl matsl force-pushed the pr_fix_byte_compile_warnings branch from 82fa4c1 to 04eaa4e Compare March 2, 2026 23:21
@matsl matsl requested a review from rswgnu March 2, 2026 23:23
hsys-org.el Outdated
(require 'org-fold nil t)
(require 'org-macs)
(require 'package)
(require 'package-activate nil t) ; Needed for Emacs >= 31
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When was this introduced into Emacs? Does 'package' not require it? Why have we not seen this warning for months?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been there for a few weeks I think. I did not fix it in my previous warning PR #869. I guess it only shows up in Emacs 31 builds so it is easy to miss and we have been busy with HyWiki things which have had higher prio.

The fix feels a bit dirty but I could not silence the warnings with any other construct. I'm also baffled because package does require it but that does not silence byte compile warning!? Why?

@rswgnu
Copy link
Owner

rswgnu commented Mar 3, 2026 via email

@rswgnu
Copy link
Owner

rswgnu commented Mar 3, 2026 via email

* hywiki.el (consult--async-command):
  (consult--lookup-member):
  (consult--read): Declare functions.
@matsl matsl force-pushed the pr_fix_byte_compile_warnings branch from 04eaa4e to a04bcb2 Compare March 3, 2026 12:14
@matsl
Copy link
Collaborator Author

matsl commented Mar 3, 2026

I think you will have to get that issue fixed in Emacs rather than in Hyperbole.

OK. I'll remove that fix and ask in emacs-devel about it.

@rswgnu
Copy link
Owner

rswgnu commented Mar 3, 2026 via email

@matsl matsl merged commit 36ed6ee into master Mar 3, 2026
4 checks passed
@matsl matsl deleted the pr_fix_byte_compile_warnings branch March 3, 2026 12:50
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.

2 participants