bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#18014: 24.3; Unused Lexical argument warning, when argument is used


From: Matthew Fidler
Subject: bug#18014: 24.3; Unused Lexical argument warning, when argument is used in a function...
Date: Mon, 14 Jul 2014 11:01:12 -0500

You probably downloaded the version with lexical binding disabled.

Sorry, I should have linked to the version with lexical binding enabled.

On Jul 14, 2014 10:47 AM, "Matthew Fidler" <matthew.fidler@gmail.com> wrote:
Also 24.3 does not exit when the warning occurs (which is another bug, actually)


On Mon, Jul 14, 2014 at 10:46 AM, Matthew Fidler <matthew.fidler@gmail.com> wrote:
Yes.  I can reproduce with a fresh emacs.  My build script uses a fresh emacs but calls it by :
 
~src/ergoemacs-mode $ make
emacs -Q --batch -L . --eval             \
     "(progn                                \
       (setq byte-compile-error-on-warn t)  \
       (batch-byte-compile))" *.el
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-advices.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-extras.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-functions.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-layouts.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-macros.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-menus.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-modal.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-mode.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-shortcuts.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-test.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-theme-engine.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-themes.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-track.elc
In toplevel form:

ergoemacs-translate.el:695:1:Warning: Unused lexical argument `key'
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-translate.elc
Wrote e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-unbind.elc
~src/ergoemacs-mode $
 
It also errors on 24.3: 


 
And  also errors on the 24.4 trunk (in ubuntu, I believe):
 
 
 


On Mon, Jul 14, 2014 at 10:30 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Mon, 14 Jul 2014 09:57:38 -0500
> From: Matthew Fidler <matthew.fidler@gmail.com>
>
Then I cannot reproduce this, neither with Emacs 24.3 nor with the
latest pretest 24.3.92.  I downloaded ergoemacs-translate.el and
ergoemacs-macros.el from that repository, and I get a clean compile.

Did you try this in a fresh Emacs, e.g. "emacs -batch -f batch-byte-compile"?



reply via email to

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