GNU bug report logs - #19704
25.0.50; funcall with hard-quote inside cl-labels uses the local function binding

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Tue, 27 Jan 2015 15:23:01 UTC

Severity: normal

Tags: patch

Found in versions 25.0.50, 25.0.94

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19704: closed (25.0.50; funcall with hard-quote inside
 cl-labels uses the local function binding)
Date: Sat, 11 Jun 2016 21:39:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 11 Jun 2016 17:38:34 -0400
with message-id <jwvwplvwgms.fsf-monnier+emacsbugs <at> gnu.org>
and subject line Re: bug#19704: 25.0.50; funcall with hard-quote inside cl-labels uses the local function binding
has caused the debbugs.gnu.org bug report #19704,
regarding 25.0.50; funcall with hard-quote inside cl-labels uses the local function binding
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
19704: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19704
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50;
 funcall with hard-quote inside cl-labels uses the local function
 binding
Date: Tue, 27 Jan 2015 17:22:36 +0200
In emacs-24 the below snippet returns (:global :local), whereas in master now, (:local :local).

(defun foo ()
  :global)

(cl-labels ((foo () :local))
  (list (funcall 'foo) (funcall #'foo)))

It's a bug, according to
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00895.html.

In GNU Emacs 25.0.50.7 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2015-01-27 on axl
Repository revision: 11527553647f61798562f04c50b789edb8c15ac3
Windowing system distributor `The X.Org Foundation', version 11.0.11601901
System Description:	Ubuntu 14.10


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: 19704-done <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#19704: 25.0.50;
 funcall with hard-quote inside cl-labels uses the local function
 binding
Date: Sat, 11 Jun 2016 17:38:34 -0400
>> Looks OK, tho a bit on the hackish side.  Maybe a simpler solution is to
>> replace  (or 'quote 'function) with 'function (i.e. only apply the
>> optimization to (funcall #'foo ...) and not to (funcall 'foo ...)).
> This works, and it matches the existing comment better too.

Thanks, installed,


        Stefan


This bug report was last modified 9 years and 38 days ago.

Previous Next


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