GNU bug report logs - #15070
24.3.50.1; eval-buffer ignores the buffer local value of lexical-binding.

Previous Next

Package: emacs;

Reported by: E Sabof <esabof <at> gmail.com>

Date: Sun, 11 Aug 2013 13:17:02 UTC

Severity: minor

Tags: fixed

Merged with 20139

Found in versions 24.3.50.1, 25.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50.1;
 eval-buffer ignores the buffer local value of lexical-binding.
Date: Sun, 11 Aug 2013 14:16:11 +0100
[Message part 1 (text/plain, inline)]
In emacs -Q:

    M-: (setq lexical-binding t)

paste the following:

    (funcall
     (let ((a 5))
       (lambda ()
         a)))

M-x eval-buffer
The error (void-variable a) will be thrown.

The snippet will be evaluated correctly, only if one inserts

    ;; -*- lexical-binding:t -*-

on the first line
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.