all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#49677: Compiler warnings for bug-reference.el
@ 2021-07-21  7:18 Arash Esbati
  2021-07-21 11:15 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Arash Esbati @ 2021-07-21  7:18 UTC (permalink / raw)
  To: 49677

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#49677: Compiler warnings for bug-reference.el
  2021-07-21  7:18 bug#49677: Compiler warnings for bug-reference.el Arash Esbati
@ 2021-07-21 11:15 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-21 11:15 UTC (permalink / raw)
  To: Arash Esbati; +Cc: 49677

Arash Esbati <arash@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-21 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-21  7:18 bug#49677: Compiler warnings for bug-reference.el Arash Esbati
2021-07-21 11:15 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.