all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Constantin Kulikov <zxnotdead@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Anaphoric lambda macro doesn't work anymore?
Date: Mon, 18 Jan 2016 10:36:40 +0300	[thread overview]
Message-ID: <CAFkz2yqpO9A6pR36E38Sj3xyxUdobkz4P=2F5wWNxkrGVFZLzw@mail.gmail.com> (raw)
In-Reply-To: <m2poybqn2w.fsf@newartisans.com>

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

> your question should go to Roland Walker at GitHub

I don't think so, I used that link to show that this(anaphoric lambda with
labels) pattern is used by someone other than me(actually it came from
common lisp of course https://en.wikipedia.org/wiki/Anaphoric_macro).
And it was working. Now it's broken. It happened because of changes in
emacs, so Roland Walker unlikely will be able to do something about it.
It's breaking change in emacs.

If someone interested -- here is the more/less working version that I use
now:

(when (version< emacs-version "24.4")
  (unless (fboundp 'self)
    (fset 'self nil)))
(defmacro alambda (args &rest body)
  "Anaphoric lambda."
  (declare (indent defun))
  `(lexical-let ((self))
     (setq self #'(lambda ,args
                    (cl-letf (((symbol-function 'self) self))
                      ,@body)))
     self))

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

  reply	other threads:[~2016-01-18  7:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFkz2yqpO9A6pR36E38Sj3xyxUdobkz4P=2F5wWNxkrGVFZLzw@mail.gmail.com' \
    --to=zxnotdead@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.