GNU bug report logs - #15316
undocumented option to pass a "lexical environment" to eval

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Tue, 10 Sep 2013 00:25:02 UTC

Severity: normal

Found in version 24.3.50

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: undocumented option to pass a "lexical environment" to eval
Date: Mon, 09 Sep 2013 20:24:33 -0400
Package: emacs
Version: 24.3.50

I wondered how the changes in
http://lists.gnu.org/archive/html/emacs-diffs/2013-09/msg00072.html
could possibly work.

Turns out `eval' has a completely undocumented behaviour:

(eval 'foo t)
  -> (void-variable foo)

(eval 'foo '((foo . 99)))
  -> 99


Added in
http://lists.gnu.org/archive/html/emacs-diffs/2013-02/msg00317.html

Not mentioned in NEWS, doc-string, anywhere, AFAICS.




This bug report was last modified 11 years and 261 days ago.

Previous Next


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