From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12938: 24.2; Lexical binding leaks into package-install somehow Date: Fri, 23 Nov 2012 16:31:23 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353706298 23265 80.91.229.3 (23 Nov 2012 21:31:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2012 21:31:38 +0000 (UTC) Cc: 12938@debbugs.gnu.org To: Magnar Sveen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 23 22:31:50 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tc0qi-00058n-AF for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 22:31:48 +0100 Original-Received: from localhost ([::1]:48694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tc0qX-00081k-LP for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 16:31:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tc0qV-0007zo-Ja for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 16:31:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tc0qU-0001RZ-J2 for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 16:31:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tc0qU-0001RV-FH for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 16:31:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tc0ru-0003eD-2W for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 16:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Nov 2012 21:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12938 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12938-submit@debbugs.gnu.org id=B12938.135370637414003 (code B ref 12938); Fri, 23 Nov 2012 21:33:02 +0000 Original-Received: (at 12938) by debbugs.gnu.org; 23 Nov 2012 21:32:54 +0000 Original-Received: from localhost ([127.0.0.1]:35307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tc0rl-0003dn-RU for submit@debbugs.gnu.org; Fri, 23 Nov 2012 16:32:54 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:59234) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tc0rk-0003dh-5M for 12938@debbugs.gnu.org; Fri, 23 Nov 2012 16:32:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FpaQ6/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="208344427" Original-Received: from 69-165-164-58.dsl.teksavvy.com (HELO pastel.home) ([69.165.164.58]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Nov 2012 16:31:23 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 47C13597C9; Fri, 23 Nov 2012 16:31:23 -0500 (EST) In-Reply-To: (Magnar Sveen's message of "Mon, 19 Nov 2012 22:07:59 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67372 Archived-At: > In other words, the lexical binding in test.el leaks into the > installation of multiple-cursors. Yuck! Can you test the patch below to confirm it fixes the problem for you? Stefan === modified file 'lisp/emacs-lisp/bytecomp.el' --- lisp/emacs-lisp/bytecomp.el 2012-11-20 19:05:20 +0000 +++ lisp/emacs-lisp/bytecomp.el 2012-11-23 21:28:58 +0000 @@ -1720,6 +1720,8 @@ (setq input-buffer (get-buffer-create " *Compiler Input*")) (erase-buffer) (setq buffer-file-coding-system nil) + ;; Don't inherit lexical-binding from caller (bug#12938). + (set (make-local-variable 'lexical-binding) nil) ;; Always compile an Emacs Lisp file as multibyte ;; unless the file itself forces unibyte with -*-coding: raw-text;-*- (set-buffer-multibyte t)