unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Elijah G <eg642616@gmail.com>
Cc: 71814-done@debbugs.gnu.org
Subject: bug#71814: define-globalized-minor-mode Should predicate variable be defined before?
Date: Sat, 29 Jun 2024 05:43:56 -0700	[thread overview]
Message-ID: <CADwFkmka4OpMfEN1r_4RqS_s3b9pwepHA-+rzTb-BPdtAZ+cpA@mail.gmail.com> (raw)
In-Reply-To: <CACnP4NJW1rO+demOCLg-F6SDZf9TSXZAMoG66JTn4sX7MLHeDg@mail.gmail.com>

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	other threads:[~2024-06-29 12:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-28  1:20 bug#71814: define-globalized-minor-mode Should predicate variable be defined before? Elijah G.
2024-06-29  3:27 ` Stefan Kangas
2024-06-29  4:33   ` Elijah G
2024-06-29 12:43     ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmka4OpMfEN1r_4RqS_s3b9pwepHA-+rzTb-BPdtAZ+cpA@mail.gmail.com \
    --to=stefankangas@gmail.com \
    --cc=71814-done@debbugs.gnu.org \
    --cc=eg642616@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).