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

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

bug#23781: 25.0.95; read-string with HIST lexically bound


From: Michael Heerdegen
Subject: bug#23781: 25.0.95; read-string with HIST lexically bound
Date: Sun, 26 Jun 2016 01:42:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux)

Stephen Berman <stephen.berman@gmx.net> writes:

> >  Also, the code in the body of a ‘defun’ or
> >  ‘defmacro’ cannot refer to surrounding lexical variables.


This seems a bit unclear to me.  It sounds like something like this
would not work:

;; -*- lexical-binding: t -*-
(let ((x 1))
  (defun f () x))

(f) ==> 1


The term "surrounding" can describe different things here (mostly,
"lexically" vs. "dynamically" surrounding).


Michael.





reply via email to

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