[Top][All Lists]

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

Anaphoric lambda macro doesn't work anymore?

From: Constantin Kulikov
Subject: Anaphoric lambda macro doesn't work anymore?
Date: Fri, 11 Dec 2015 17:07:48 +0300


(defmacro anaphoric-lambda (args &rest body)
  "Like `lambda', but the function may refer to itself as `self'.
ARGS and BODY are otherwise as documented for `lambda'."
  (declare (debug lambda)
           (indent defun))
  `(labels ((self ,args ,@body))

Some versions ago it was working(it seems to me that for 24.4 it works).
(With cl-labels and lexical-binding I can do it, but it is not compatible with older emacses.)

My current emacs-version is

reply via email to

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