|
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 -QM-: (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) RETDebugger entered--Lisp error: (void-function self)
Try using: (require 'cl-lib) instead. (Your if-condition should be: (> a b) .) Alexis.
[Prev in Thread] | Current Thread | [Next in Thread] |