Subject: bug#19704: 25.0.50; funcall with hard-quote inside cl-labels uses the local function binding

From: Stefan Monnier <[email-masked]>
Date: Fri, 10 Jun 2016 22:42:11 -0400

>> Seems that macroexp--expand-all got too aggressive, patch below
>> teaches it to back off in case of locally defined functions:
> Thanks, Noam. Seems to work fine here.
> Stefan, how does it look to you?

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 ...)).

        Stefan