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

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

bug#49677: Compiler warnings for bug-reference.el


From: Arash Esbati
Subject: bug#49677: Compiler warnings for bug-reference.el
Date: Wed, 21 Jul 2021 09:18:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50

Hi all,

when native compiling bug-reference.el, the compiler says:

    Compiling 
path-to/emacs/share/emacs/28.0.50/lisp/progmodes/bug-reference.el...

    In bug-reference--try-setup-gnus-article:
    bug-reference.el:350:14: Warning: reference to free variable 
`bug-reference-mode'

    In bug-reference-try-setup-from-rmail:
    bug-reference.el:396:14: Warning: reference to free variable 
`bug-reference-mode'

    In bug-reference--run-auto-setup:
    bug-reference.el:506:13: Warning: reference to free variable 
`bug-reference-mode'

The variable is defined through the minor-mode at the end of the file.
I suggest to add the following

(defvar bug-reference-mode)

in line 100 just before

(defvar bug-reference-prog-mode)

which should fix the issue.

I'm running Emacs 28 repo version 13b247c3c4.

Best, Arash





reply via email to

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