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: Luc Teirlinck
Subject: Re: gdb-ui.el assumes images support
Date: Tue, 9 Nov 2004 16:58:33 -0600 (CST)

Richard Stallman wrote:

       It may also require another file simply to avoid warnings for using
       undefined functions that are defined in that file.  

   This "solution" causes more trouble the problem it is meant to solve;
   please don't use it.

I do not know whether you are talking about a _run-time_ require or
about the (eval-when-compile (require ...) ...) _in this particular
file_.

If you are talking about (eval-when-compile (require ...) ...) _in
general_ then the following text from `(elisp)Coding Conventions'
which encourages use of this construct to avoid compiler warnings
should be changed:

     Sometimes adding a `require' for another package is useful to
     avoid compilation warnings for variables and functions defined in
     that package.  If you do this, often it is better if the
     `require' acts only at compile time.  Here's how to do that:

          (eval-when-compile
            (require 'foo)
            (defvar bar-baz))


Sincerely,

Luc.






reply via email to

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