all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Anaphoric lambda macro doesn't work anymore?
@ 2015-12-11 14:07 Constantin Kulikov
  2015-12-12 23:11 ` John Wiegley
  0 siblings, 1 reply; 8+ messages in thread
From: Constantin Kulikov @ 2015-12-11 14:07 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

https://github.com/rolandwalker/anaphora/blob/master/anaphora.el#L337

```
(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))
     #'self))
```

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

[-- Attachment #2: Type: text/html, Size: 881 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-23  4:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-11 14:07 Anaphoric lambda macro doesn't work anymore? Constantin Kulikov
2015-12-12 23:11 ` John Wiegley
2016-01-18  7:36   ` Constantin Kulikov
2016-01-18  9:10     ` Alexis
2016-01-18  9:32       ` Constantin Kulikov
2016-01-18 10:02         ` Alexis
2016-01-18 10:41           ` Constantin Kulikov
2016-01-23  4:38         ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.