GNU bug report logs - #49677
Compiler warnings for bug-reference.el

Previous Next

Package: emacs;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Wed, 21 Jul 2021 07:19:01 UTC

Severity: normal

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: emacs-bugs <bug-gnu-emacs <at> gnu.org>
Subject: Compiler warnings for bug-reference.el
Date: Wed, 21 Jul 2021 09:18:28 +0200
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




This bug report was last modified 3 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.