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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49677 in the body.
You can then email your comments to 49677 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#49677; Package emacs. (Wed, 21 Jul 2021 07:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arash Esbati <arash <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 Jul 2021 07:19:02 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49677; Package emacs. (Wed, 21 Jul 2021 11:16:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: 49677 <at> debbugs.gnu.org
Subject: Re: bug#49677: Compiler warnings for bug-reference.el
Date: Wed, 21 Jul 2021 13:15:38 +0200
Arash Esbati <arash <at> gnu.org> writes:

> 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've now pushed the suggested fix to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 49677 <at> debbugs.gnu.org and Arash Esbati <arash <at> gnu.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 21 Jul 2021 11:16:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 18 Aug 2021 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 223 days ago.

Previous Next


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