[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 08 May 2012 23:24:57 +0100
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (darwin)
Nice diversion about the ugliness of Org-mode code delimitation.
In the mean time, wouldn't it be prudent to answer the OP's question?
it seem C-M-x is not working as expected in a `lexical-binding' enabled
;; -*- lexical-binding: t -*-
(defun foo ()
(declare (special bar))
(let ((bar 2)
#'(lambda () (+ bar baz))))
;; I expect this:
;; (funcall (foo))
;;=>Symbol's value as variable is void: bar
However, (funcall (foo)) return 5 until I byte-compile and load the
So my question is how do you evaluate such code when working in a
`lexical-binding' enabled buffer?
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- Re: BEGIN_SRC..END_SRC,
Martyn Jago <=