bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#71814: define-globalized-minor-mode Should predicate variable be def


From: Stefan Kangas
Subject: bug#71814: define-globalized-minor-mode Should predicate variable be defined before?
Date: Sat, 29 Jun 2024 05:43:56 -0700

Elijah G <eg642616@gmail.com> writes:

> 1. create a .el file
> 2. insert this snippet into to file:
> ```
> (define-minor-mode test-mode "")
> (define-globalized-minor-mode global-test-mode
>   test-mode #'ignore
>   :group 'test
>   :predicate '(prog-mode text-mode))
> ```
> 3. byte-compile the file
> 4. in the compile log buffer should appear this warning:
> `Warning: reference to free variable ‘global-test-modes’`
> which is the variable generated by the macro.

Thanks, I've now fixed this on emacs-30 (commit a65b6aac6b5).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]