emacs-devel
[Top][All Lists]
Advanced

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

Re: Declaring variables


From: Simon Josefsson
Subject: Re: Declaring variables
Date: Fri, 28 Dec 2001 20:24:54 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu)

Richard Stallman <address@hidden> writes:

> Many byte compiler warnings are for reference to a global
> variable that has no visible definition.  It would be nice
> to get rid of them.  The way to do that with existing facilities
> is to write
>
>   (defvar variable)
>
> in the file.  But that has disadvantages, because some facilities will
> treat it as a real definition of the variable.  It would be good to
> have a clean solution that would have no disadvantages.  I recall
> there was a discussion of this about a year ago, but I don't recall
> what conclusion (if any) we reached.
>
> I can see two approaches: define another construct for declaring a
> variable and not defining it, or change the facilities that now get
> confused by this so that they won't get confused any more.

The construct could be `autoload'.  Right now it sorts of declares,
but do not define, a function.  Just an idea.




reply via email to

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