all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15070: 24.3.50.1; eval-buffer ignores the buffer local value of lexical-binding.
@ 2013-08-11 13:16 E Sabof
  0 siblings, 0 replies; only message in thread
From: E Sabof @ 2013-08-11 13:16 UTC (permalink / raw)
  To: 15070

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 596 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-11 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-11 13:16 bug#15070: 24.3.50.1; eval-buffer ignores the buffer local value of lexical-binding E Sabof

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.