[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BEGIN_SRC..END_SRC
From: |
Martyn Jago |
Subject: |
Re: BEGIN_SRC..END_SRC |
Date: |
Tue, 08 May 2012 23:24:57 +0100 |
User-agent: |
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?
..."
Hi,
it seem C-M-x is not working as expected in a `lexical-binding' enabled
buffer:
#+BEGIN_SRC emacs-lisp
;; -*- lexical-binding: t -*-
(defun foo ()
(declare (special bar))
(let ((bar 2)
(baz 3))
#'(lambda () (+ bar baz))))
;; I expect this:
;; (funcall (foo))
;;=>Symbol's value as variable is void: bar
#+END_SRC
However, (funcall (foo)) return 5 until I byte-compile and load the
file.
So my question is how do you evaluate such code when working in a
`lexical-binding' enabled buffer?
Thanks.
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
"
- Re: BEGIN_SRC..END_SRC,
Martyn Jago <=