emacs-devel
[Top][All Lists]
Advanced

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

Re: gdb-ui.el assumes images support


From: Nick Roberts
Subject: Re: gdb-ui.el assumes images support
Date: Tue, 9 Nov 2004 12:54:07 +1300

 >  >>I added the last require after Gerd Moellmann included the others. My
 >  >>understanding now is that a file only requires another, at compilation,
 >  >>if it uses a macro defined in that other file.
 >  >
 >  > It may also require another file simply to avoid warnings for using
 >  > undefined functions that are defined in that file.
 >  >
 >  > How else would you avoid such warnings?
 > 
 > With (require 'feature) at the top level, since it is needed at runtime.

That's my understanding, too. Furthermore, the compiler warnings are
presumably there to help the developer decide if he needs to use "require".
In the case of tooltip.el, the undefind functions from gud and gdb-ui can only
be invoked by using their debugger modes, so, AFAIK, "require" is not needed
for these features. To use (require 'feature) just to eliminate warnings,
would be the wrong thing to do, I think.

Nick





reply via email to

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