Reiner Steib <[EMAIL PROTECTED]> 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 _______________________________________________ auctex-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex-devel
