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: Alexis
Subject: Re: Anaphoric lambda macro doesn't work anymore?
Date: Mon, 18 Jan 2016 21:02:08 +1100


Constantin Kulikov <address@hidden> writes:

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)

Try using:

   (require 'cl-lib)

instead.

(Your if-condition should be:

   (> a b)

.)


Alexis.



reply via email to

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