[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11241: 24.1.50; emacs-lock is ill uncompiled (lexical binding proble
From: |
Juanma Barranquero |
Subject: |
bug#11241: 24.1.50; emacs-lock is ill uncompiled (lexical binding problem?) |
Date: |
Sat, 14 Apr 2012 04:06:19 +0200 |
> `arg' is free in the anonymous mode setter function in the definition
> of `emacs-lock-mode':
Not really, if you look at the macroexpansion of the define-minor-mode-call
(defun emacs-lock-mode (&optional arg)
"..."
(interactive (list (or current-prefix-arg 'toggle)))
(let ((#1=#:last-message (current-message)))
((lambda (mode) (emacs-lock--set-mode mode arg))
...
> Seems this is related to lexical binding.
Yes
> You don't get that error when you use the compiled code, however.
Stefan, I can "fix" this for 24.1 just by making emacs-lock.el not use
lexical-binding. But is this difference between compiled and
non-compiled code a bug in the lexical-binding support or something
expected?
Juanma