GNU bug report logs - #12532
24.2.50; wrong results using byte-compile-file with lexical-binding

Previous Next

Package: emacs;

Reported by: Sergey Vinokurov <serg.foo <at> gmail.com>

Date: Fri, 28 Sep 2012 15:55:01 UTC

Severity: normal

Tags: notabug

Found in version 24.2.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 12532 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Sergey Vinokurov <serg.foo <at> gmail.com>
Cc: 12532 <at> debbugs.gnu.org
Subject: Re: bug#12532: 24.2.50;
	wrong results using byte-compile-file with lexical-binding
Date: Fri, 28 Sep 2012 16:22:48 -0400
tags 12532 notabug
thanks

> On trunk Emacs compiling function with argument names declared as
> special somewhere, like mode-name, resulting function produced by
> byte-compile-file is different from function obtained by evaluating
> definition or byte-compiling that definition in buffer. This code uses
> all three possibilities and reports evaluating results

Yes.  Using special variables as function arguments is not supported for
lexical-binding code.  So the behavior can change according to the phase
of the moon.  That's also why the byte-compiler warns you that

test12592_hY.el:2:1:Warning: Argument *myvar* is not a lexical variable



        Stefan




This bug report was last modified 12 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.