help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Writing a function/macro in Elisp that generates a function at runti


From: Johan Bockgård
Subject: Re: Writing a function/macro in Elisp that generates a function at runtime
Date: Tue, 28 Oct 2008 19:09:35 +0100
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

Toby Cubitt <tsc25@cantab.net> writes:

> (defun wrap-insert-function (insfun)
>   `(lambda (new-data old-cell)
>      (setf (cell-data old-cell)
>            (funcall ,insfun new-data (cell-data old-cell)))
>      old-cell))

(lexical-let ((insfun insfun))
  (lambda ...))





reply via email to

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