From: Magnar Sveen <magnar@kodemaker.no>
To: emacs-devel@gnu.org
Subject: Bug with lexical-binding and package-install?
Date: Mon, 19 Nov 2012 07:50:10 +0100 [thread overview]
Message-ID: <CALVcYyC2uhLuQ+7VHQTc+rdivkmT9jkyu2fVQeOpG8OFv0Ka1A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 958 bytes --]
I got a bug report yesterday in which my package was broken because lexical
scoping was suddenly in effect.
After some init-file-bisecting, this is the conclusion:
> It appears as though your first instinct about lexical-binding is
correct. I had a ;;; -*- lexical-binding: t -*- directive in my
init-packages.el file, which is responsible for downloading the installing
missing packages (of which multiple-cursors.el is one).
>
> It seems that if the file which calls package-install has that flag
turned on, it applies the lexical binding to the compiler, which results in
the following compiler warning:
>
> In mc/region-strings:
> mc-mark-more.el:78:20:Warning: assignment to free variable `strings'
>
> This warning doesn't appear in the compiler messages if lexical-binding
is nil.
This is on Emacs 24.2.1 on OS X. Full compiler warnings and code excerpts
can be found here:
https://github.com/magnars/multiple-cursors.el/issues/39
- Magnar Sveen
[-- Attachment #2: Type: text/html, Size: 1279 bytes --]
next reply other threads:[~2012-11-19 6:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-19 6:50 Magnar Sveen [this message]
2012-11-19 20:31 ` Bug with lexical-binding and package-install? Stefan Monnier
2012-11-19 21:10 ` Magnar Sveen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALVcYyC2uhLuQ+7VHQTc+rdivkmT9jkyu2fVQeOpG8OFv0Ka1A@mail.gmail.com \
--to=magnar@kodemaker.no \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).