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

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

bug#21963: Spurious byte compile message: "Warning: the function `bar' m


From: Alan Mackenzie
Subject: bug#21963: Spurious byte compile message: "Warning: the function `bar' might not be defined at runtime."
Date: Fri, 20 Nov 2015 16:15:35 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

Hello, John.

On Fri, Nov 20, 2015 at 08:01:31AM -0800, John Wiegley wrote:
> >>>>> Eli Zaretskii <eliz@gnu.org> writes:

> >> (eval-when-compile (require 'warning-bar))
> >> (require 'warning-bar)

> > I think if you leave only the second one, Bob's your uncle.

> I think the question is: Why does haven't the first one cause the definedness
> introduced by the second to not be recognized?

While eval-when-compile'ing the first line, the byte compiler collects a
list of symbols defined by it (in variable
byte-compile-noruntime-functions).  More or less.

There is no mechanism for taking symbols off of that list when they
subsequently become defined.

> John

-- 
Alan Mackenzie (Nuremberg, Germany).





reply via email to

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