Subject: bug#24171: closed (Re: bug#24171: 25.1; Bytecode returns nil instead of expected closure)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 09 Aug 2016 17:12:01 +0000

Your bug report

#24171: 25.1; Bytecode returns nil instead of expected closure

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
24171: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24171
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#24171: 25.1; Bytecode returns nil instead of expected closure
From: Stefan Monnier <[email-masked]>
To: Alex Vong <[email-masked]>
Cc: Michael Heerdegen <[email-masked]>, [email-masked]
Date: Tue, 09 Aug 2016 13:05:31 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> Yes, this fixes the original problem.
> (https://lists.gnu.org/archive/html/help-gnu-emacs/2016-08/msg00038.html)
> The test is performed on master branch with patch applied.

Thanks, installed.

        Stefan

Subject: 25.1; Bytecode returns nil instead of expected closure
From: Michael Heerdegen <[email-masked]>
To: [email-masked]
Cc: Alex Vong <[email-masked]>
Date: Sun, 07 Aug 2016 01:16:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

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.

Compile the defun and load it.  Then,

  (test) -> nil

which is wrong.

Found in

   https://lists.gnu.org/archive/html/help-gnu-emacs/2016-08/msg00038.html

Thanks,

Michael.

In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.20.6)
 of 2016-08-04 built on drachen
Repository revision: 72221f51439d666d54f5d147f00ecdbb3778ab1b
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Debian GNU/Linux testing (stretch)

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11