From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#24171: 25.1; Bytecode returns nil instead of expected closure Date: Sun, 07 Aug 2016 11:01:50 +0200 Message-ID: References: <877fbtqyhp.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1470560650 11393 195.159.176.226 (7 Aug 2016 09:04:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2016 09:04:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24171@debbugs.gnu.org, Alex Vong To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 07 11:04:06 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWJyI-00084S-RG for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Aug 2016 11:02:14 +0200 Original-Received: from localhost ([::1]:51906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWJyF-0000vw-He for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Aug 2016 05:02:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWJy9-0000vV-1y for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 05:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWJy5-0005lX-Vo for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 05:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWJy5-0005lT-TH for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 05:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWJy5-0004pc-Jw for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 05:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Aug 2016 09:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24171 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24171-submit@debbugs.gnu.org id=B24171.147056051918566 (code B ref 24171); Sun, 07 Aug 2016 09:02:01 +0000 Original-Received: (at 24171) by debbugs.gnu.org; 7 Aug 2016 09:01:59 +0000 Original-Received: from localhost ([127.0.0.1]:58329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWJy3-0004pO-D8 for submit@debbugs.gnu.org; Sun, 07 Aug 2016 05:01:59 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:46883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWJy1-0004pE-9i for 24171@debbugs.gnu.org; Sun, 07 Aug 2016 05:01:57 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3s6ZKw1Jtxz3hjS7; Sun, 7 Aug 2016 11:01:55 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3s6ZKv2GMDzvkQW; Sun, 7 Aug 2016 11:01:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 2G4W00sY34wy; Sun, 7 Aug 2016 11:01:54 +0200 (CEST) X-Auth-Info: W6gpn/X5oeXJ70WEkPcA296dzM16OnUu9WvWHgHwizjiHiHuSKCSqvYYeeZ0T40l Original-Received: from linux.local (ppp-88-217-6-113.dynamic.mnet-online.de [88.217.6.113]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 7 Aug 2016 11:01:54 +0200 (CEST) Original-Received: by linux.local (Postfix, from userid 501) id 8F1161E530E; Sun, 7 Aug 2016 11:01:51 +0200 (CEST) X-Yow: Those aren't WINOS--that's my JUGGLER, my AERIALIST, my SWORD SWALLOWER, and my LATEX NOVELTY SUPPLIER!! In-Reply-To: <877fbtqyhp.fsf@web.de> (Michael Heerdegen's message of "Sun, 07 Aug 2016 01:16:50 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121933 Archived-At: Michael Heerdegen writes: > eval this defun: > > (defun test () > (let ((my-cool-fun 'dummy)) > (let ((my-cool-fun > (let ((calculate (lambda () 1))) > (lambda () (setq my-cool-fun calculate)))) > (return-my-cool-fun (lambda () my-cool-fun))) > (funcall my-cool-fun) > (funcall return-my-cool-fun)))) > > (test) evals to a closure as expected. ELISP> (test) *** Eval error *** Symbol’s value as variable is void: calculate Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."