emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anaphoric lambda macro doesn't work anymore?


From: Stefan Monnier
Subject: Re: Anaphoric lambda macro doesn't work anymore?
Date: Fri, 22 Jan 2016 23:38:59 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> emacs -version
> GNU Emacs 25.0.50.1

> emacs -Q

> M-: (require 'cl) RET
> M-: (defmacro alambda (args &rest body) `(labels ((self ,args ,@body))
> #'self)) RET
> M-: (funcall (alambda (a b) (if (a > b) (message "%s %s" a b) (self b a)))
> 1 2) RET

> Debugger entered--Lisp error: (void-function self)

Indeed, looks like a plain bug: the #'self is not being replaced with
a reference to the `labels' defined function for some reason.
Can you make a proper bug report for it (i.e. send the above recipe
with M-x report-emacs-bug), so we get a tracking number?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]