[Top][All Lists]

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

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

From: Ralf Angeli
Subject: [AUCTeX-devel] Re: byte-compile-warnings in lpath.el
Date: Mon, 12 Jun 2006 00:19:16 +0200

* Reiner Steib (2006-06-11) writes:

> On Sun, Jun 11 2006, Ralf Angeli wrote:
>> Unfortunately `require' and `defvar' will not help in all cases.
>> There is code which let-binds variables in one function and uses these
>> variables in other functions.  Ugly.
> (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?

In LaTeX-section-heading:
latex.el:427:11:Warning: assignment to free variable `level'

In LaTeX-section-title:
latex.el:433:38:Warning: reference to free variable `title'
latex.el:433:38:Warning: assignment to free variable `title'

In LaTeX-section-toc:
latex.el:443:22:Warning: assignment to free variable `toc'
latex.el:444:13:Warning: reference to free variable `toc'

In LaTeX-section-section:
latex.el:462:16:Warning: reference to free variable `toc'
latex.el:465:22:Warning: reference to free variable `done-mark'
latex.el:470:22:Warning: reference to free variable `title'

One could probably come up with names suitable for global variables
but it still makes me shudder.


reply via email to

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