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: Stefan Monnier
Subject: Re: gdb-ui.el assumes images support
Date: Tue, 09 Nov 2004 19:02:57 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>      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))

At least the (defvar bar-baz) should be removed since it has no effect
inside an eval-when-compile (i.e. it doesn't remove the warning).
The `require' doesn't necessarily remove the warning either, mind you.


        Stefan




reply via email to

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