[Top][All Lists]

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

Re: [AUCTeX-devel] Re: byte-compile-warnings in lpath.el

From: David Kastrup
Subject: Re: [AUCTeX-devel] Re: byte-compile-warnings in lpath.el
Date: Mon, 12 Jun 2006 14:26:21 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Reiner Steib <address@hidden> writes:

> On Mon, Jun 12 2006, Ralf Angeli wrote:
>> * Reiner Steib (2006-06-11) writes:
>>> (defvar let-bound-variable) would help in this case, or am I missing
>>> something?
>> Well, yes, but do you want to defvar the following variables?
>> latex.el:427:11:Warning: assignment to free variable `level'
>> latex.el:462:16:Warning: reference to free variable `toc'
> [...]
> The only purpose of declarations like (defvar level) and (defvar toc)
> is to calm down the byte-compiler.  No variables `level' and `toc' are
> actually defined.

If Emacs ever reverts to lexical binding (there is a branch for that),
then the defvar makes the difference between lexical and dynamically
bound variables.

Now indeed this sort of programming practice would demand dynamically
bound variables and would cease working without the defvar.

But I think we should maybe aim to replace this ugliness instead of
getting it to compile without complaint.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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