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

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

bug#12938: 24.2; Lexical binding leaks into package-install somehow


From: Stefan Monnier
Subject: bug#12938: 24.2; Lexical binding leaks into package-install somehow
Date: Fri, 23 Nov 2012 16:31:23 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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)






reply via email to

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